Trash Can
Content
URL: http(s)://rapidgator.net/api/v2/trashcan/contentDescription: Returns a trash can file's details
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
Optional params:
- folder_id - The key that identifies the folder. If the folder_id is not passed, will return the root folder details.
- page - Page number. Default is 1
- per_page - Number of files per page. Default is 500
- sort_column - Sort column name. Possible values: 'name', 'created', 'size', 'delete_time'. Default is 'name'
- sort_direction - Sort direction. Possible values: 'ASC', 'DESC'. Default is 'ASC'
Request example: api/v2/trashcan/content?token=arsd4h37ecfkdqd16uolf5nai1
Success response example 1:
Success response example 2:
Restore
URL: http(s)://rapidgator.net/api/v2/trashcan/restoreDescription: Restore file(s) to root folder.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
Optional params:
- file_id - The key that identifies the file. You can also specify multiple file keys separated by comma. If not specified will be restored all files.
Request example: /api/v2/trashcan/restore?file_id=0a2d1c33d77b765bd410ab2b4fd98b91,4249143f4023f044a79ae53286465476&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Empty
URL: http(s)://rapidgator.net/api/v2/trashcan/emptyDescription: Empty trash can.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
Optional params:
- file_id - The key that identifies the file. You can also specify multiple file keys separated by comma. If not specified will be deleted all files.
Request example: /api/v2/trashcan/empty?file_id=0a2d1c33d77b765bd410ab2b4fd98b9b,918631d1a976b64b8541723575c71838&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example: