Skip to main content

This API supports all services required to make cross border payments using Earthport's network.

Project description

EarthportRestApiClient
=================


This SDK uses the Requests library and will work for Python ```2 >=2.7.9``` and Python ```3 >=3.4```.

How to configure:
=================
The generated code might need to be configured with your API credentials.
To do that, open the file "Configuration.py" and edit its contents.

How to resolve dependencies:
===========================
The generated code uses Python packages named requests, jsonpickle and dateutil.
You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).

1. From terminal/cmd navigate to the root directory of the SDK.
2. Invoke ```pip install -r requirements.txt```

Note: You will need internet access for this step.

How to use:
===========
After having resolved the dependencies, you can easily use the SDK following these steps.

1. Create a "earthport-rest-api-client_test.py" file in the root directory.
2. Use any controller as follows:
```python
from __future__ import print_function
from earthport-rest-api-client.earthport_rest_api_client_client import EarthportRestApiClientClient

api_client = EarthportRestApiClientClient()
controller = api_client.quotes
response = controller.create_bulk_fx_quote(<required parameters if any>)

print(response.fx_ticket_id)

# Or you can print more information
print(vars(response))
```

Project details


Release history Release notifications

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
earthport-rest-api-client-1.0.0.tar.gz (60.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page