Log In Using Mobile Device ID¶
Log the Player in using a mobile device. Returns a JWT token that is tied to the player and should be used to authenticate on subsequent requests.
Note
A Player will automatically be created if they do not exist.
HTTP request¶
POST https://megamify.com/api/v1/player/login/device/
Headers¶
See Security section of the API Reference.
Body¶
| Name | Required | Type | Description |
|---|---|---|---|
| game | True | int | The Game ID to login to |
| device_id | True | string | DeviceId is provided by iOS/Android system |
| device_model | False | string | DeviceId is provided by iOS/Android system |
| device_os_version | False | string | DeviceId is provided by iOS/Android system |
| device_type | False | int | Type of device being used (1=PHONE, 2=TABLET, 3=DESKTOP, 4=OTHER) |
Response¶
Status: 201 Created
| Name | Type | Description |
|---|---|---|
| token | string | The JWT token |
| user | User object | The User object |