API for Xamarin app - getting nowhere

Thank you for the extra information. The code used by the Xamarin app is:

               string userDevicesUrl = $"{GlobalInfo.UrlAPI}/AdeviceList/{savedAuid}";     //Changed to match the new API 220208

                string accessToken = await SecureStorage.GetAsync("accessToken");
                ;
                HttpClient http = new HttpClient();
                http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
                
                HttpResponseMessage res = await http.GetAsync(userDevicesUrl).ConfigureAwait(false);
               
                res.EnsureSuccessStatusCode();

I had a guy in the Philippines helping me with the Xamarin app, but he is not often available because his home was flattened by a typhoon. He has looked at the problem and can’t see why it isn’t working.

I will try your suggestions. Is using Postman to hit the API, with the bearer token, a legitimate way to troubleshoot it?

Thanks,

Rob

1 Like