That means I’m properly paired with mobile phone, internet connection works and I have proper privileges. Token works for sure. I’ve checked it with Postman, curl command and with REST client app for Android (3 different solutions works fine).
After getting a token I’m making REST API call with that token, and it looks like that:
So I’m getting server response at least. But I’m not authorize and I’m completely don’t have idea WTF.
Are there some problems with oAuth2.0 on Tizen wear? Why the server don’t want to accept my requests even though it returned token before? Maybe some hidden constrains?
Of course I’ve defined features and privileges in config.xml: internet, network.internet, network.wifi, download, location and so on.
Pls help 🙂
PS. Please note that external links are with spaces because of Tizen forum policy.
Tizen wear: 401 response error when fetching data from Nest API
Hi folks 🙂
I’m currently developing quite simple app using NEST API:
The problem: I’m getting 401 error when I’m trying to get data from NEST API.
First I’m getting token and it works perfectly fine:
That means I’m properly paired with mobile phone, internet connection works and I have proper privileges. Token works for sure. I’ve checked it with Postman, curl command and with REST client app for Android (3 different solutions works fine).
After getting a token I’m making REST API call with that token, and it looks like that:
But then I’m getting an error response. I also tried request using only XMLHttpRequest (without ajax/jquery) – I’m getting the same error response.
Error:
So I’m getting server response at least. But I’m not authorize and I’m completely don’t have idea WTF.
Are there some problems with oAuth2.0 on Tizen wear? Why the server don’t want to accept my requests even though it returned token before? Maybe some hidden constrains?
Of course I’ve defined features and privileges in config.xml: internet, network.internet, network.wifi, download, location and so on.
Pls help 🙂
PS. Please note that external links are with spaces because of Tizen forum policy.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio