C# Getting 403 Forbidden when calling REST API
Hey all, I was finally able to figure out how to successfully retrieve an auth token. Now when I call the REST api passing along the token, I get a 403 Forbidden error message.
My basic code is below. Also note that the client created in Panopto was for User Based Server Application. Any help would be greatly appreciated!
client = new HttpClient();
client.BaseAddress = new Uri("https://johndeere.hosted.panopto.com");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Uri uri = new Uri("https://johndeere.hosted.panopto.com/api/v1/users/me/sessions/viewed");
response = await client.GetAsync(uri);
jsonString = await response.Content.ReadAsStringAsync();