Are you working with Insider Builds❓
Participate in our survey and get to know the new UI 👉 here 👈.
Connect c# console to API
I need to access devices list from a windows console to the TeamViewer API. So, it's not clear for me how to pass my secret and cliend id. My actual code is
HttpClient client = new HttpClient();
client.BaseAddress = new Uri("https://webapi.teamviewer.com");
var url = "/api/v1/devices";
var resultat = await client.GetAsync(url);
For sure, this execution return to me a 401 code. Do I need an authorization code? If yes, how to obtain it dynamically without login user account or have a return url... To made it simple, how can I use my secret and client id to obtain access to this api?