1.1.0 • Published 1 year ago

@antavo/api-client-node v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Antavo API Client

Antavo API Client helps you send secure HTTP requests (for APIs).

Usage

  1. Get the Client class in order to initialize it later:

    var Client = require("@antavo/api-client-node").Client
  2. Create a new client object like:

    var client = new Client(ENVIRONMENT, API_KEY, API_SECRET)

Requests

  • GET

    var response = client.get(URI).getBody('utf8')
  • POST

    var response = client.post(URI, DATA_OBJECT).getBody('utf8')

Responses

KeyTypeDescription
statusCodeIntegerHTTP status code of the request
headersObject<String, mixed>HTTP response headers
bodyBufferResponse body in raw format. Convert it through getBody('utf8').
urlStringRequest URL
1.1.0

1 year ago

1.0.0

2 years ago