ekko-nodejs
Version:
Ekko Rest Api wrapper — nodeJs
33 lines (28 loc) • 697 B
Markdown
# 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:
```javascript
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
// }
});
```