1.1 KiB
mediafire
- https://www.mediafire.com/developers/ : not anymore
Steps
-
Get a session token. Note : Session token will be expired after a couple period of time so is cookie so need to generate them again, means somehow automate login.
-
Using it to get folders and files info of root directory for folder and files content 2 api api is called and eveyrthing is same in request body except content-type request body is of form-data, files one will give the sharable link too folderkey field contains key of parent folder, root one is basically 'myfiles'.
-
for uploadfile, it will check the folder where it is uploaded and quickkey of folder will be there too in response, then it will upload as
application/octlet-stream, and will send filehash too in headers which is ofsha256sum. After the resulable upload api, key will be get which will be used for next poll upload thing -
for getting sharable link : : "https://www.mediafire.com/file/7mpw92w27etlaex/Restfox-main.zip/file" . so format is
https://www.mediafire.com/file/<quick_key>/<filename>/fileor just until quick_key is enough too