earthport-rest-api-client

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

Usage no npm install needed!

<script type="module">
  import earthportRestApiClient from 'https://cdn.skypack.dev/earthport-rest-api-client';
</script>

README

EarthportRestApiClient

Installation

The SDK relies on Node Package Manager (NPM) being available to resolve dependencies. Once published you will need copy the folder earthport-rest-api-client in to your node_modules folder.

Usage

The following shows how import and use the controller:

  1. Import the module:

    var earthport-rest-api-client = require('earthport-rest-api-client');
    
  2. Configure any authentication parameters. For example:

    var config = earthport-rest-api-client.configuration;
    config.apikey = a_secret_key;
    
  3. Access various controllers by:

    var controller = earthport-rest-api-client.XYZ;
    controller.getItems(id, callback);