advance-api-sdk
v1.0.2
Published
[![Build Status](https://travis-ci.org/Baoban/open-api-sdk-js.svg?branch=master)](https://travis-ci.org/Baoban/open-api-sdk-js) [![npm](https://img.shields.io/npm/v/advance-api-sdk.svg)](https://www.npmjs.com/package/advance-api-sdk)
Downloads
3
Readme
Advance OpenAPI JS SDK
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)