Posted by mLipok
Heptagon

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 ?

Regards,
mLipok , AutoIt MVP

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

5 Replies
5 Replies
Posted by DomLan
Heptagon

Re: Get Single Device Detail

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/123456789

I think...(can you try it?)

Domenico Langone
MCSD: App Builder
Posted by mLipok
Heptagon

Re: Get Single Device Detail

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 MVP

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

Posted by DomLan
Heptagon

Re: Get Single Device Detail

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
MCSD: App Builder
Posted by mLipok
Heptagon

Re: Get Single Device Detail

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 MVP

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

Posted by mLipok
Heptagon

Re: Get Single Device Detail

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 MVP

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.