Getting the Device Count

Getting the Device Count

Using a RESTful call, you can request the count of all devices that are currently registered for push notifications with Telerik Platform. Note that the result object also contains all device objects grouped into an array.

Request:
    GET https://api.everlive.com/v1/your-app-id/Push/Devices/_count
Headers:
    Authorization: Masterkey your-master-key

Response:
    Status: 200 OK
    Content-Type: application/json
    Body: {
        "Count": 30,
        "Result": [
            {
                "Parameters": {
                    "Age": 21
                },
                "HardwareId": "5d1bab4703085feb",
                "HardwareModel": "SM-N9005",
                "PlatformType": 3,
                "PlatformVersion": "5.0",
                "TimeZone": "Europe/Helsinki",
                "PushToken": "BPA91bEib_UV5Wdi_PEyHRuE2qJ56pU1Pq7IbCS9N0kHoJQ4SZpoHQnPXE4x5n6VI87x8NuJJL3L2yh4xjY8OBx-QYveaILouOSeZdDwROeT8xxd0F9kNdbRdk4VsIDq0psPCTJEOUnU7SR7u6xaPfRBeW7NWHLAAg",
                "Locale": "en-US",
                "UserId": null,
                "Active": true,
                "CreatedAt": "2015-10-06T11:18:06.508Z",
                "ModifiedAt": "2015-10-06T11:18:06.508Z",
                "Id": "eadf2ec0-6c1b-11e5-8dba-3ba955362858"
            },
            {
            // output omitted for brevity
            }
        ]
    }
$.ajax({
    type: "GET",
    url: 'https://api.everlive.com/v1/your-app-id/Push/Devices/_count',
    headers: {
        "Authorization": "Masterkey your-master-key"
    },
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
});

See Also


Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.