API

Cloud users are granted to use cloud data storage.
Storage capacity will be increased by devices an account has and other reasons.

Also, It provide REST API.

Upload

Uploading a file to repository with a file.

POST /users/me/repo/{file_name}

Request Parameter

Name Type Optional Description
access\_token Cookie Required String of user's access token
file Body/Multipart-form Required The file to be uploaded

Response

json format.

Status Description
200 Success
400 Format Error
403 Invalid access token / capacity full

Download

Download a file from repository.

GET /users/me/repo/{file_name}

or

GET /users/{user_id}/repo/{file_name}

Request Parameter

Name Type Optional Description
access\_token Cookie Optional String of user's access token

Response

File it self. octet-stream.

Status Description
200 Success
403 Invalid access token / capacity full
404 Not Found