1.0.2 • Published 7 years ago

advance-api-sdk v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Advance OpenAPI JS SDK

Build Status npm

Install

npm install advance-api-sdk

How to use

var API = require('advance-api-sdk')
var api = new API(host, accessKey, secretKey)

// you can make a API request like this
api.request(path, method, data, function (error, result) {
  if (error) {
    console.log(error)
  } else {
    console.log(result)
  }
})


// you can also build headers for customized request
var headers = api.buildHeaders(path, method, data)