link icon
Ask The Community

list device reports with API

I try to list all devices via the API and get an unauthorized message in C#. I have already a corporate license for v12.

string accessToken = "xxxxxxxx";
string tvApiBaseUrl = "";
string address = tvApiBaseUrl + "/api/v1/reports/devices/";

// Create the web request
HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
request.Headers.Add("Authorization", "Bearer " + accessToken);
request.Method = "GET";
WebResponse webResp = request.GetResponse();


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!