MediaFire API wrapper class

Started on the old forum in August 2012 · view the original in the archive · old links redirect here

#api #mediafire #wrapper

No replies · 859 views · started 14 years ago · 1 min read

softwarefreak Senior · 349 posts #1

Wat it actually does is ... generates a direct download link for your(only yours i.e need to put an user id & password) mediafire files, if you suppy the file id (called quick key) Maybe useful only for them who host their files in mediafire to let their site visitors download them. Instead of linking the files to the mediafire site, U can link it to this class & it will generate a direct download link. Everything else is inside the archive. example usage

<?PHP
	// example key "awdrzfzexzxmu81"
	if (isset($_GET['key'])) {
		require "mediafire.php";
		$media_object = new MediaFire("demo@example.com", "password", 7558, "28n76xs5l5warn7kw5sbbrg1gncyr70a0unj0d5b", $_GET['key']);
		unset($media_object);
	} else {
		echo "Quick key not supplied.";
		exit();
	}
?>

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Attachments: mediafire.zip

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close