Device Object

Field Type Description
identifier string Unique identifier for the device
Example: BF4DF979-86E9-830D-BFC3-7G9F084D237B
app_version int The version of the Yappy app installed on the device
Example: 236
device_model string The model of the device
Example: "VS980 4G"
last_connection_time int The last time the device contacted Yappy's servers (unix timestamp)
Example: 1448165156010
android_os_version int The version of the Android OS installed on the device
Example: 23
type string The type of device: phone or tablet
Example: phone
active bool If false the device has been deleted
Example: true
created int The time the record was created (unix timestamp)
Example: 1448165156010
modified int The last time this record was modified (unix timestamp)
Example: 1448165156010
Example
{
    "identifier": "BF4DF979-86E9-830D-BFC3-7G9F084D237B",
    "app_version": 236,
    "device_model": "VS980 4G",
    "last_connection_time": 1448165156010,   
    "android_os_version": 236,    
    "type": "phone",
    "active": true,
    "created": 1448165156010, 
    "modified": 1448165156010
}

get-devices

Get a list of devices belonging to the current user. Supports Syncing Changes via the modified_after querystring parameter.

Call
GET https://api.yappy.im/v1/devices

Request
Field Type Required Description Default Value
modified_after int No Return devices modified after this date (unix timestamp)
Example: 1448165156010
active bool No If true, returns only active devices
Example: true
False
Response
Field Type Description
devices Device[] Array of Device objects
Example: Get Devices
Request
curl --header 'Access-Token: <your_access_token_here>' \
    https://api.yappy.im/v1/devices
Response
{
    "devices": [
        {
            "identifier": "BF4DF979-86E9-830D-BFC3-7G9F084D237B",
            "app_version": 236,
            "device_model": "VS980 4G",
            "last_connection_time": 1448165156010,
            "android_os_version": 236,    
            "type": "phone",
            "active": true,
            "created": 1448165156010,    
            "modified": 1448165156010
        }
    ]
}