The sendspace Application Programming Interface (API) allows you to embed sendspace services in your applications, programs, or scripts, regardless of platform and programming language.
All communication with the sendspace API (1.2) assumes a UTF-8 encoding.
< Return to Method List
Method: addressbook.delete
- Description
Delete contacts, searching by email address, can receive list of email addresses
- Arguments
| Name | Mandatory | Description |
| session_key | Yes | Received from auth.login |
| Yes | Contact email. cannot be changed. for changing need to use add |
- Returns
Contact email address if operation was successful
- Response
<!-- successful response -->
<result method="addressbook.delete" status="ok">
<email>$email</email>
</result>
- Usage Example
http://api.sendspace.com/rest/?method=addressbook.delete&session_key=9i96woykgory1crglmykgycjwa5k2cq2&email=test@test.com,test2@test.com
- Possible Errors
| Code | Name | Description |
| 6 | API_ERROR_SESSION_BAD | Session expired or not found |
| 29 | API_ERROR_CONTACT_NOT_EXISTS | Contact doesn't exist |