latestOpenAPI 3.0.02026-08-10101230.3 KB
86fda89a7d6a
Sessions
Creates an user session.
Creates an user session.
Examples
POST /session.json
post/session.json
Request body
Example request
{
"facebook_session": {
"description": null,
"externalValue": null,
"summary": null,
"value": {
"application_id": "76730",
"auth_key": "gqneCwWtz8dqF4F",
"keys": {
"secret": "asf21rad12rg32gdww2dyid",
"token": "g12sfeCwWtz8dqF4F"
},
"nonce": "71334",
"provider": "facebook",
"signature": "9e2a3dbfe9366d0cf0bc61e6b3529d22ff0f725b",
"timestamp": "1567350955"
}
},
"user_session": {
"description": null,
"externalValue": null,
"summary": null,
"value": {
"application_id": "76730",
"auth_key": "gqneCwWtz8dqF4F",
"nonce": "71334",
"signature": "fadd6e1457a42ccd92951621241ec5f3513b278c",
"timestamp": "1567350955",
"user": {
"login": "Mike",
"password": "!mike123"
}
}
}
}Response
Session
Example response
{
"success": {
"description": null,
"externalValue": null,
"summary": null,
"value": {
"session": {
"_id": "1151827623",
"application_id": "76730",
"created_at": "2019-09-01T14:55:56Z",
"id": "1151827623",
"nonce": "7334",
"token": "c56f382b402fb482086db956064592d3cd012bba",
"ts": "1567349756",
"updated_at": "2019-09-01T14:55:56Z",
"user_id": 0
}
}
}
}