0.0.5 • Published 3 years ago

kyouko v0.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

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 number
  • fileID - 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 number
  • fileID - File identification number

Returns:    Promise[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

7 years ago