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: auth.checksession
- Description
Checks if a session is valid or not.
- Arguments
Name | Mandatory | Description |
session_key | Yes | Received from auth.login |
- Returns
Session status (OK/Expired) and up to date account statistics which include the of user's remaining bandwidth & disk space information
- Response
<result method="auth.checkSession" status="ok">
<session>ok/expired</session>
<bandwidth_left>bytes/-1=unlimited</bandwidth_left>
<diskspace_left>bytes/-1=unlimited</diskspace_left>
</result>
- Possible Errors
Code | Name | Description |
6 | API_ERROR_SESSION_BAD | Session expired or not found |
7 | API_ERROR_SESSION_NOT_AUTH | Session not authenticated |