MEDIAFIRE File Transfer

Just starting out? Need help? Post your questions and find answers here.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

MEDIAFIRE File Transfer

Post by StarWarsFan »

I have been experimenting a lot with PureBasic's file-transfer-capabilities.
FTP works fine, HTTP as well.

But how about accessing a MEDIAFIRE-archive for automated download using PB?

I could nowhere find such. Has nobody tried or successfully done this yet?
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
uweb
User
User
Posts: 98
Joined: Wed Mar 15, 2006 9:40 am
Location: Germany

Re: MEDIAFIRE File Transfer

Post by uweb »

I never did anything with MediaFire.
But the first hit of googling to "MediaFire API" was https://www.programmableweb.com/api/mediafire
It looks to me like the REST-API is the easiest way.
What Is REST? - http://www.restapitutorial.com/lessons/whatisrest.html
You can use the Representational State Transfer via curl - http://forums.purebasic.com/english/vie ... 13&t=66521
Please pardon my English, my native tongue is German.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Re: MEDIAFIRE File Transfer

Post by StarWarsFan »

My problem with this is that I am absolutely in the dark and your response is nice, but does not help me forward:

API Portal / Home Page
http://developers.mediafire.com/index.php/REST_API
=> gives me a 404 error

Has nobody a working example of how to automatically download a file from Mediafire in Purebasic?


EDiT: I found that page at least in the webarchive in the meantime:
https://web.archive.org/web/20130326104 ... p/REST_API
Last edited by StarWarsFan on Mon Jun 08, 2020 1:07 pm, edited 1 time in total.
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: MEDIAFIRE File Transfer

Post by Bisonte »

StarWarsFan wrote:But how about accessing a MEDIAFIRE-archive for automated download using PB?
I think MediaFire will give you a link, so the download looks simple. Look at ReceiveHTTPFile().

Upload is another thing. I just ask google, and the result is : Uploads done only with the webinterface of MediaFire. No FTP.
I don't find any "API" to make a request to this site, so this could be either very tricky (try&error method) or impossible.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Re: MEDIAFIRE File Transfer

Post by StarWarsFan »

Bisonte,

your response is nice and all - but does not help me:
Already in my initial post I stated that I have tried HTTP-file-transfer and know how to use it.
And that naturally includes also ReceiveHTTPFile().
You must have overread that part. But thanks anyway...

Anyone capable of offering ACTUAL help here?
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: MEDIAFIRE File Transfer

Post by cas »

Do you have mediafire premium account subscription?
If not, then it is probably impossible to do what you want. Free file sharing services earn money by placing ads on their download pages. If there would exist an automated tool for mass downloading for free users then they would earn less money because less people would visit their website and click on ads. That's why they protect every download with captcha. You can't bypass that with automated software downloader.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Re: MEDIAFIRE File Transfer

Post by StarWarsFan »

Oh please come on, have you switched your brain on before posting please?
What you write there does not help me forward in the matter. Even worse:
It is not only wrong, it is nonsense!

If you think that what you wrote is not nonsense, would you care to explain why
for example WINZIP was elected to be the MEDIAFIRE!-APP!-of the month then?
Link: http://blog.mediafire.com/2015/12/media ... winzip-20/

And have you never used Mediafire Desktop?
I believe you have no clue what you are talking about.

So please now, not everybody post to increase their post-count with remarks that do not get us forward in the matter!

The question is how to implement MEDIAFIRE File Transfers as module for PB. And yes, other applications do that as well WITHOUT premium/pro account.
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Re: MEDIAFIRE File Transfer

Post by StarWarsFan »

Basically I want to do IN PB what these applications already do:
https://www.mediafire.com/developers/apps/
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
StarWarsFan
Enthusiast
Enthusiast
Posts: 169
Joined: Sat Mar 14, 2015 11:53 am

Re: MEDIAFIRE File Transfer

Post by StarWarsFan »

Example WINZIP:
Connect to leading cloud services
WinZip connects directly to ZipShare, Box, OneDrive, Dropbox, Google Drive, CloudMe, SugarSync and MediaFire, so you can organize all your cloud files at once. Use WinZip to zip and save large files to the cloud or retrieve files or links to share.
Source: http://www.winzip.com/win/en/wzfeatures-share.html

I want my PB Code to connect to Mediafire, send and receive files.
Image - There is usually a lot of "try this, maybe do that" but ONLY an example that one can test for themself and get an immediate result actually brings people forward.
RobertSF
User
User
Posts: 61
Joined: Thu May 03, 2018 4:24 pm

Re: MEDIAFIRE File Transfer

Post by RobertSF »

StarWarsFan wrote:Oh please come on, have you switched your brain on before posting please? What you write there does not help me forward in the matter. Even worse: It is not only wrong, it is nonsense!
Hey, I understand you're frustrated. Programming can be love and hate. When everything is working, you feel like a king, but when it doesn't work, you feel like :evil: But people try to be helpful, so please don't attack when their help doesn't work. :D
And yes, other applications do that as well WITHOUT premium/pro account.
I'm sure Niko Mac Computing, makers of WinZip, probably doesn't have a premium/pro account. But we don't know what the arrangement is. Perhaps Niko Mac paid MediaFire thousands of dollars to use their cloud, or perhaps MediaFire paid Niko Mac thousands of dollars to use them instead of some other cloud. We just don't know.

I don't know the answer, and your question may be specific enough that nobody here knows. Consider looking for Media Fire programming forums, or perhaps contact Media Fire directly.
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: MEDIAFIRE File Transfer

Post by cas »

StarWarsFan wrote:Oh please come on, have you switched your brain on before posting please?
What you write there does not help me forward in the matter. Even worse:
It is not only wrong, it is nonsense!

If you think that what you wrote is not nonsense, would you care to explain why
for example WINZIP was elected to be the MEDIAFIRE!-APP!-of the month then?
Link: http://blog.mediafire.com/2015/12/media ... winzip-20/

And have you never used Mediafire Desktop?
I believe you have no clue what you are talking about.

So please now, not everybody post to increase their post-count with remarks that do not get us forward in the matter!

The question is how to implement MEDIAFIRE File Transfers as module for PB. And yes, other applications do that as well WITHOUT premium/pro account.
You said that you want to mass download files, do you want to download them only from your personal account or also from other accounts? I am assuming that you want to do from other accounts and that is not possible without premium account. And if you only want to download or upload files to your personal account then go to official mediafire page for developers where you can find their API explained and how to use it: https://www.mediafire.com/developers/
PB has native functions for parsing XML/JSON and sending HTTP requests. Enough to get you started... At least come back with some code and we will gladly help you with it. If you want someone else to write code from scratch then go find and hire some freelancer.
Post Reply