Requests the current or cached location of up to 10,000 IoT or consumer devices (phones, tablets. etc.). This request returns a synchronous transaction ID, and the location information for each device is returned asynchronously as a DeviceLocation callback message.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
*/*
An asynchronous request to obtain locations of devices.
TypeScript Definitions
Use the request body type in TypeScript.
The body contains the the account name and list of devices that you want to locate, plus other options.
application/json
application/json
curl -X POST "https://example.com/devicelocations" \ -H "Content-Type: */*" \ -d '<accountName>2234434445-32333</accountName> <accuracyMode>0</accuracyMode> <cacheMode>2</cacheMode> <deviceList> <id>354677790348290</id> <kind>imei</kind> <mdn>5557337468</mdn> </deviceList>'{ "txid": "4be7c858-eeee-ffff-gggg-95061456d835", "status": "QUEUED"}{ "errorCode": "INVALID_PARAMETER", "errorMessage": "Unregistered account"}Account identifier in "##########-#####".
Device list.
Accurary, currently only 0-coarse supported.
Value in
Location cache mode.
Value in