0.0.2 • Published 2 years ago
simple-node-sdk v0.0.2
SIMPLE NODE SDK
Sample NodeJS SDK
Installation
npm install --save simple-node-sdk
Setup
const nodeSDK = require('simple-node-sdk');
const mockFunctions = nodeSDK('apiKey', 'secretApiKey');
Quickly test that you can connect to the API with the following call:
mockFunctions.consoleAuthorsName().then((result) => {
console.log(result);
}).catch((err) => {
console.log(err);
});
mockFunctions.consoleMyName().then((result) => {
console.log(result);
}).catch((err) => {
console.log(err);
});