API
Docs and API's for Weasy.io
File Manager
Get all the information about all the files used by the subscription website.Allows file upload.
Accepts GET POST DELETE
All requests to the API must be authenticated with an API key on the HTTP Authorization header.
GET
Get all files from website filemanagerRequest example
~ curl -i -X GET \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/filemanager
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/filemanager
Body response example [ HTTP CODE: 200 ]
Path parameters
| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| limit | integer | optional | define items per page |
| page | integer | optional | define page to display |
POST
Upload a file or a collection of files to website filemanager.Upload item can be a remote url or a base64 encoded data.
Payload max length is 25MB.
Request example
~ curl -i -X POST \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '["https://cdn1.weasy.io.com/users/store/other/sampleimage.jpg", "https://someurl.com/files/20170208_233652.jpg"]' \
https://api.weasy.io/v1/filemanager
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '["https://cdn1.weasy.io.com/users/store/other/sampleimage.jpg", "https://someurl.com/files/20170208_233652.jpg"]' \
https://api.weasy.io/v1/filemanager
Body response example [ HTTP CODE: 200 ]
Body attributes
| Attribute description |
|---|
| A json payload containing an array of file or files. Each element of the array can be a remote URL or a Base64 encoded string. The file format for base64 encoded string will be automatically detected. |
DELETE
Delete a file or a collection of files to website filemanager.Request example
~ curl -i -X DELETE \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '["https://cdn1.weasy.io./users/store/other/sampleimage.jpg", "https://someurl.com/files/20170208_233652.jpg"]' \
https://api.weasy.io/v1/filemanager
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '["https://cdn1.weasy.io./users/store/other/sampleimage.jpg", "https://someurl.com/files/20170208_233652.jpg"]' \
https://api.weasy.io/v1/filemanager
Body response example [ HTTP CODE: 200 ]
Body attributes
| Attribute description |
|---|
| A json payload containing an array of file or files. |