How to completely delete file on MediaFire

情到浓时终转凉″ 提交于 2019-12-13 00:43:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!