-
-
Save tylerdave/409ffa08e1d47b1a1e23 to your computer and use it in GitHub Desktop.
Hi !
The last line - print json.dumps(nest_response.json() ..
I don't see a device key, only structures and metadata -- have I made a mistake while registering the product?
Would be really thankful.
This was really helpful, thanks!
I was trying to do this following https://developers.nest.com/documentation/cloud/rest-quick-guide which says to use the Authorization
header with your access_token
, and that was consistently failing with 401 Unauthorized. Using an auth
param instead seems to work, but I haven't seen documentation for it (that doesn't say much though, the documentation is pretty scattered).
Actually, I figured out why the authorization header wasn't working. Making requests to developer-api.nest.com ends up doing a redirect to a firebase hostname, and the requests library strips authorization headers when doing redirects. https://github.com/kennethreitz/requests/issues/2949 talks about this more, specifically about how it happens working with the Nest API.
Hi, if i want to set temperature?
regards
What programming language do I have to use in order to do this? I'm new to Nest development.
Thanks for the write up. This was exactly what I had been hunting for. One question, have you found a way to make the authorization_code be persistent? I can run the python code once per authorization_code. Second run I have get a new authorization code. This doesn't help with a cron'd script.