问题
Is there a way to delete file directly, bypassing Trash folder, using Mediafire API? When I try to delete file, I call the method http://www.mediafire.com/api/file/delete.php, which moves file in the Trash. It seems this folder can be purged only through Browser. Does API offer a way to clean the Trash folder?
回答1:
You should always look for their documentation, as this answer was extracted from there:
Purge
Description : Permanently delete a user's file.
Required Parameters:
session_token : A type 1 or type 2 session token. (Type 2 will require a call signature). quick_key : The quickkey, or a list of quickkeys separated by commas, that identify the files to be purged. The maximum number of quickkeys allowed is 500.
Optional Parameters:
signature : This is the call signature that is required to authenticate a type 2 session token transaction. response_format : 'xml' or 'json' (default 'xml')
来源:https://stackoverflow.com/questions/24681686/how-to-completely-delete-file-on-mediafire