GET session
Retrieves the details of the current user session.
Requesting the session details is useful to find out whether there is an authenticated user, and to figure out the locale of the current user (authenticated or not).
Resource URL
https://www.drillster.com/api/2.1.1/session
Parameters
None.
Response
Returns a 2.1.1 Session object. Depending on whether there is an authenticated user, a user object may be included.
{
"locale": "en_US"
}
{
"locale": "en",
"user": {
"type": "USER",
"id": "jane@example.com",
"name": "Jane Doe",
"avatar": {
"type": "image/png",
"url": "https://www.drillster.com/bin/avatar/330b901c200be68c852885e3a7eb31f7e938f89c"
}
}
}
Error responses
None.
Last updated on