|
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 |
| session_key | Yes | Received from auth.login |
| file_id | Yes | file_id or full file URL starting with http:// |
| password | No |
<result method="download.getInfo" status="ok"> <download file_id="" name="" url="" file_size="" /> </result>
http://api.sendspace.com/rest/?method=download.getinfo&session_key=9i96woykgory1crglmykgycjwa5k2cq2&file_id=http%3A%2F%2Fsendspace.com%2Ffile%2Fxapz8a
| Code | Name | Description |
| 6 | API_ERROR_SESSION_BAD | Session expired or not found |
| 9 | API_ERROR_FILE_NOT_FOUND | File not found |
| 11 | API_ERROR_PERMISSION_DENIED | Permission denied |
| 12 | API_ERROR_DOWNLOAD_TEMP_ERROR | Download is temporarily unavailable |
| 19 | API_ERROR_PRO_EXPIRED | Pro user, account expired |
| 22 | API_ERROR_BAD_PASSWORD | A wrong or empty password was given |
| 23 | API_ERROR_BANDWIDTH_LIMIT | Account bandwidth limit reached |
| 26 | API_ERROR_INVALID_FILE_URL | Not a sendspace download URL (must start with http://www.sendspace.com/ and contain a 6 character link) |