1.0.0 • Published 3 years ago

aftermarketpl-api v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

AfterMarket.pl API client class for Node.js

This library allows you to issue calls to the AfterMarket.pl from Node.js.

Quick start

Install the library using npm:

npm install aftermarketpl-api

Create the API client object, providing your API key. Click here to obtain your API key.

const Aftermarket = require('aftermarketpl-api')
const client = new Aftermarket({
    key: '<MY API KEY>',
    secret: '<MY API SECRET>'
})

Call an API function and obtain a result. Click here to see the list of API functions.

client.send('/domain/check', {
    'names': [ 'domain1.pl', 'domain2.pl' ]
}).then((data) => {
    // Do something with the data
}).catch((error) => {
    // Handle errors
});

Details

The library uses the axios module to perform asynchronous calls to the API.

The returned Promise is fulfilled with the data received from the API, or rejected if an arror accurs.

1.0.0

3 years ago