Authorization - shine-chen/Quest-Web-API GitHub Wiki
Get a new access token.
/v1/auth/
POST
- app_key
- Application Key
- user_uuid
- The user's UUID
- os
- The requester's operation system (or SDK platform)
- Reserved but not used
POST /v1/auth HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Cache-Control: no-cache
{
"app_key": "ec1a07a0-389c-11e4-b7f4-5b0b1df46947",
"user_uuid": "test-user-uuid",
"os": "ios"
}
HTTP Status 200 if success
{
"app_id": "1",
"app_uuid": "013583d2-f164-4eb3-9dfc-524076d4b204",
"user_uuid": "test-user-uuid",
"token": "b3cIvDSdQ7iphDPN430ewlny490tR8QDNoHR4G7gaRM=",
"expiration_date": "2015-12-01T06:01:50.869Z",
"urls": {
"beacon_flyer_img": "http://cms.quest-platform.com/upload/online/beaconContent/:beacon_id/:beacon_flyers_distance/:beacon_flyers_order/:beacon_flyers_content",
"beacon_flyer_audio": "http://cms.quest-platform.com/upload/online/beaconContent/:beacon_id/:beacon_flyers_distance/:beacon_flyers_order/:beacon_flyers_audio_file",
"beacon_flyer_video_thumbnail": "http://cms.quest-platform.com/upload/online/beaconContent/:beacon_id/:beacon_flyers_distance/:beacon_flyers_order/video/:beacon_flyers_videoimg_file"
},
"latest_sdk": {
"version": "0.1.0",
"homepage": "https://github.com/shine-chen/QuestSDK-iOS"
}
}
HTTP Status 404
{
"message": "Application not found",
"code": 404
}