|
sendspace API (beta) Developer GuideThe sendspace Application Programming Interface (API) allows you to embed sendspace services in your applications, programs, or scripts, regardless of platform and programming language. |
| Name | Mandatory | Description |
| speed_limit | No | Upload speed limit in kilobytes, 0 for unlimited |
| api_key | Yes | Received from sendspace |
| api_version | Yes | 1.0 |
| app_version | No | Application specific, formatting / style is up to you |
<result method="anonymous.uploadgetinfo" status="ok"> <upload url="" progress_url="" max_file_size="" upload_identifier="" extra_info="" /> </result>
| Code | Name | Description |
| 5 | API_ERROR_BAD_API_VERSION | Unknown or unsupported API version |
<upload_done> <status>ok</status> <download_url>http://www.sendspace.com/file/XXXXX</download_url> <delete_url>http://www.sendspace.com/delete/XXXXX/YYYY</delete_url> <file_id>XXXXX</file_id> </upload_done>
<progress> <status>ok/fail/done</status> <eta>00:00:00</eta> <speed>50</speed> <!-- in kbps --> <uploaded_bytes>1000</uploaded_bytes> <!-- in bytes --> <total_size>50000</total_size> <!-- in bytes --> <elapsed>00:00:00</elapsed> <meter>0-100</meter> <!-- percentage of upload done --> </progress>
<? header("Content-type: text/xml"); echo file_get_contents($_REQUEST['url']); ?>