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

NameTypeOptionalDescription
access_tokenCookieRequiredString of user’s access token
fileBody/Multipart-formRequiredThe file to be uploaded

Response

json format.

StatusDescription
200Success
400Format Error
403Invalid 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

NameTypeOptionalDescription
access_tokenCookieOptionalString of user’s access token

Response

File it self. octet-stream.

StatusDescription
200Success
403Invalid access token
404Not Found