kyouko v0.0.5
Installation
# with npm
$ npm install kyouko
# or with Yarn
$ yarn add kyouko
Documentation
Kyouko(token)
new Kyouko(token)
token
- The your api key to perform operations on the service
upload(path)
Upload file
path
- Relative or absolute file path
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
delete(id)
Delete file
id
- File identification number
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
files()
Gets all your files sent
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
me()
Details about user
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
createAlbum(name)
Create a new album
name
- Name for the album
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
deleteAlbum(id)
Delete a exists album
id
- Album identification number
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
albums()
Get information from all your albums
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
addFileAlbum(albumID, fileID)
Add a file to an album
albumID
- Album identification numberfileID
- File identification number
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
removeFileAlbum(albumID, fileID)
Remove a file from an album
albumID
- Album identification numberfileID
- File identification number
Returns: Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)