Spongecell API Documentation: Reference - Session
Session
Authenticate to your Spongecell User account, and log in by creating a session. The session will provide temporary authorization to your user account.
The API requires one of 3 sets of parameters for proper authentication: user_name and password, wkey, or digest and timestamp. The parameters are described in detail below.
Also provides actions for "logging out" by destroying the session, or checking whether already logged in by showing the session.
Actions
The following actions are supported for this resource:
| show | GET | /api/session/1 | Returns the user id of the logged in user. |
| create | POST | /api/session | Create the session, i.e. log user in. |
| user_name | STRING | User name or e-mail address for authentication | |
| password | STRING | Password for authentication | |
| wkey | STRING | API Write Key for authentication | |
| digest | STRING | Digest for authentication | |
| timestamp | STRING | Time-stamp for digest authentication | |
| destroy | DELETE | /api/session/1 | Destroys the session, i.e. log user out. |
