I got the authorization code from https://home.nest.com/login/oauth2?client_id=CLIENT_ID&state=FOO.
I want to get the access_token, but something wrong!
https://api.home.nest.com/oauth2/access_token?code=AUTHORIZATION_CODE&client_id=STRING&client_secret=STRING&grant_type=authorization_code
Result:
url: "/oauth2/access_token?code=xxx&client_id=xxx&client_secret=xxx&grant_type=authorization_code",
message: "404 Not Found"
You need to POST your request. Also, the authorization code expires when used once, so you may need to get another.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With