|
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 list of files' id's (a1a1a1,s2s2s2,d3d3d3) |
| emails | Yes | List of emails to send |
| message | No | Additional message to send the recipients |
<!-- successful response --> <result method="files.sendMail" status="ok"> <id>$file_id</id> </result> <!-- failed response --> <result method="files.sendmail" status="fail"> <error code="24" text="Email(s) are invalid"/> <id>6wnhxi</id> </result>
http://api.sendspace.com/rest/?method=files.sendmail&session_key=9i96woykgory1crglmykgycjwa5k2cq2&file_id=u5txwy&emails=webmasteratsendspacedotcom&message=check+this+file
| Code | Name | Description |
| 6 | API_ERROR_SESSION_BAD | Session expired or not found |
| 9 | API_ERROR_FILE_NOT_FOUND | File not found |
| 24 | API_ERROR_INVALID_EMAIL | Email(s) are invalid |