Menu itemDownloads |
API (application programming interface)The interface description offers good insight into the possibilities of the integration of function calls of your own programs. Developers can easily manage the Premium and Collector Zone. This enables the creation of tools and programs with direct access to the RapidShare technology. What is more, the API is ideal to equip your own software with the RapidShare technology, and thereby making your programs for users even more attractive. Upload script in Perl with Upload-Resume functionalityThis script demonstrates the Upload with Resume on the RapidShare server. With the insight into procedural methods, you can easily generate your own scripts and programs. Optional parameters for RapidShare linksThese parameters can influence the download behaviour of a file. This way you can control the access in more detail and insert RS-files into your own programs.
Referrer-string
Direct downloads for premium users
Range functionality through a downloadlink
Secure TrafficShare
Change the relevant file into a secured TrafficShare file in your Premium Zone. {23}
#!/usr/bin/perl
use strict;
use warnings;
use Digest::MD5("md5_hex");
my $premiumaccount = "12345"; # Insert Premium Account ID
my $fileid = "12345678"; # Insert File ID
my $filename = "yourfile.zip"; # Insert file name
my $killcode = "123456789012345"; # File Killcode. The Killcode can be viewed in the Premium Zone under "Export Details"
my $validuntil = time + 300; # Effective for 300 seconds from now on
my $md5hex = md5_hex("$premiumaccount,$fileid,$killcode,$validuntil");
print "Secured link is: http://rapidshare.com/files/$fileid/t$validuntil-$md5hex/$filename";
{23}
<?
$premiumaccount = "12345"; // Insert Premium Account ID
$fileid = "12345678"; // Insert File ID
$filename = "yourfile.zip"; // Insert file name
$killcode = "123456789012345"; // File Killcode. The Killcode can be viewed in the Premium Zone under "Export Details"
$validuntil = time() + 300; // Effective for 300 seconds from now on
$md5hex = md5($premiumaccount.",".$fileid.",".$killcode.",".$validuntil);
print "Secured link is: http://rapidshare.com/files/$fileid/t$validuntil-$md5hex/$filename";
?>
Your program code should not be visible to others. For instance, a download link that is valid for 3 years could be created or the file could be deleted because the "Killcode" is included. If you offer the facility to generate download links on your website, you should under no circumstances program the process in JavaScript or any other client-side scripting language. |