1.0.4 • Published 2 years ago
scarletai.js v1.0.4
ScarletAI.JS
The official Node.JS wrapper to ScarletAI.API
Functions
createUser(user) ⇒ Promise.<object>
Send a POST Request to create a new user
Kind: global function
Param | Type |
---|---|
user | object |
getUser(id) ⇒ Promise.<any>
Get the user by ID
Kind: global function
Param | Type |
---|---|
id | string |
updateUser(id, user) ⇒ Promise.<object>
Send a PUT Request to update a user
Kind: global function
Param | Type |
---|---|
id | string |
user | object |
deleteUser(id, password) ⇒ Promise.<any>
Send a DELETE Request to delete a user
Kind: global function
Param | Type |
---|---|
id | string |
password | string |
getRefreshToken() ⇒ Promise.<any>
Send a request to retrieve a new token
Kind: global function