Get Single Device Detail
I know there is:
GET /api/v1/contacts (list all contacts from the computers & contacts list)
But what I can do if I want to get only one client info ?
I do not see such feature - could anybody confirm ?
mLipok , AutoIt MVP
Comments
-
Hi,
There's no detail in documentation 1.4.1.
The service is RESTful type: so it is highly likely that the functionality is not documented, but it is feasible with a simple GET directed to specific entity:
GET /api/ v1/contacts/123456789I think...(can you try it?)
Domenico Langone
0 -
I will try it.
btw.
I was thinking about:
GET /api/v1/devices (list all devices from the computers & contacts list)So I will try to check both features.
Regards,
mLipok , AutoIt MVP0 -
Ok.
Remember to use prefix for specific entity: (eg. GET /api/v1/contacts/c123456 - GET /api/v1/devices/d987654321)
"d" for device, "c" for contact... and so on... (ref. man 1.3 IDs)
Bye
Domenico Langone
1 -
Some progress.
I use my own TVID and I get this:400 Bad Request
{"error":"invalid_request","error_description":"Device does not exist.","error_code":1}Regards,
mLipok , AutoIt MVP0 -
This works:
https://webapi.teamviewer.com/api/v1/contacts?email=user@domain.com
And this:
https://webapi.teamviewer.com/api/v1/devices?remotecontrol_id=r012345678
and this:
https://webapi.teamviewer.com/api/v1/devices/d012345678
I realized (after many tests) that my question was wrong inflicted, because actually I was looking for how to check the device data based on the "remotecontrol_id" and not "device_id"
{
"devices": [
{
"remotecontrol_id": "r0123456RI",
"device_id": "d0123456DI",
"alias": "mLipok",
"groupid": "g012345GI",
"online_state": "Online",
"assigned_to": true,
"supported_features": "remote_control, chat"
}
]
}The other questions is why I'm not geting this data:
alias – The alias that the current user has given to this device.
description – The description that the current user has entered for this device.
policy_id (optional) – ID of the policy that is assigned to the device. Possible values are: a policy_id, inherit. Only available with a TeamViewer Subscription license.In return values ?
Regards,
mLipok , AutoIt MVP0