1.0.5 • Published 7 years ago
ekko-nodejs
Licence
MIT
Version
1.0.5
Deps
4
Size
18 kB
Vulns
11
Weekly
0
ekko-nodejs
Ekko Rest Api wrapper
Installation
npm install ekko-nodejs --save
Example
To create a user you would simply need to have something like this:
const EkkoSdk = require('ekko-nodejs');
const ekko = EkkoSdk('<SOME API TOKEN>');
const payload = {
"user_id": string,
"nickname": string,
"image_url": string,
"issue_access_token": boolean // (Optional)
};
ekko.users.create(payload)
.then(function (response) {
// do something with ekko response
// {
// "user_id": string,
// "nickname": string,
// "image_url": string,
// "access_token": string
// }
});