| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Dokkio Sidebar (from the makers of PBworks) is a Chrome extension that eliminates the need for endless browser tabs. You can search all your online stuff without any extra effort. And Sidebar was #1 on Product Hunt! Check out what people are saying by clicking here.

View
 

FrontPage

This version was saved 14 years, 11 months ago View current version     Page history
Saved by PBworks
on November 1, 2007 at 3:42:45 pm
 

API Documentation

 

TinyLoad has an Application Programming Interface for exposing its file distribution system – it’s extremely simple. This page serves as a development reference to extend the service into remote applications.

 

All parameters should be converted to a UTF-8 and pass through a URL encode function if data contains complex strings.

 

Available Methods: Transfer, Upload (documentation available soon).

 

Transfer File

URL: http://tinyload.com/api/1.0/transload.{format}?url={file}

Request Method: GET

Response Format: xml, json, txt

 

Parameters

  • URL (required): URL of file to distribute.*

 

Example Request: http://tinyload.com/api/1.0/transload.xml?url=http://site.com/logo.gif

 

 

  • Force (optional): Will overwrite file regardless of being unique. Default is False. Options: true or false.*

 

Example Request: http://tinyload.com/api/1.0/transload.xml?url=http://site.com/logo.gif&force=true

 

 

  • Sites (optional): Destination sites for transfer. Format: site ids delimited by commas. Default: ‘1,2,3,4’ which by the table below will transfer file to Megaupload, Mediafire, Rapidshare, and Divshare.*

 

Site IdSite NameSite Link
1MegaUploadlink
2MediaFirelink
3RapidSharelink
4DivSharelink
5BestSharinglink
6SendSpacelink
7Uploadinglink
8FileSendlink
9Easy-Sharelink
10Amazon S3link

 

Example Request: http://tinyload.com/api/1.0/transload.xml?url=http://site.com/logo.gif&sites=1,2,10 will upload http://site.com/logo.gif to Megaupload, Mediafire, and Amazon S3.

 

Response if Success

  • XML *

 

<?xml version="1.0" encoding="UTF-8"?>

<response>

<status>200</status>

<link>http://tinyload.com/{id}</link>

</response>

 

  • JSON

 

{

"status": 200,

"link": "http://tinyload.com/{id}"

}

 

  • TXT

 

200

http://tinyload.com/{id}

 

Response if Error

 

XML JSON Txt

<?xml version="1.0" encoding="UTF-8"?>

<response>

<status>400</status>

<field>field</field>

<message>Error Message</message>

</response> {

“status”: 400,

“field”: Field,

“message”: Error Message

} 400

 

Field

Error Message

 

Explanation of Errors:

Status: Corresponds with standard HTTP Error Code 400

Field: Which Parameter caused the error

Message: Details about why the Parameter caused an error

Comments (0)

You don't have permission to comment on this page.