kyouko
v0.0.5
Published
Wrapper for managing the kyouko.se api in simple and sane
Downloads
4
Readme
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
delete(id)
Delete file
id
- File identification number
files()
Gets all your files sent
me()
Details about user
createAlbum(name)
Create a new album
name
- Name for the album
deleteAlbum(id)
Delete a exists album
id
- Album identification number
albums()
Get information from all your albums
addFileAlbum(albumID, fileID)
Add a file to an album
albumID
- Album identification numberfileID
- File identification number
removeFileAlbum(albumID, fileID)
Remove a file from an album
albumID
- Album identification numberfileID
- File identification number