Comments (9)
1.5.3 published on Nuget
from netatmo.
My current workaround is instead of using client.GenerateToken()
I generate a token on dev.netatmo.com
and then provide then new Access Token in my code via client.ProvideOAuth2Token()
Of course this is no full automation and would need to be fixed here. But at least my scripts now work again...
from netatmo.
My hope was now to initially generate Access Token and Refresh Token, modify the coding here to be able to pass the Refresh Token in methods like CredentialManager.ProvideOAuth2Token(string oauth2Token)
and CredentialManager.RefreshToken()
to be able to always request a new Token via Refreshing a token API call in Netatmo, but for some reason this just doesn't work if I test this in Postman.
No idea if I do something wrong or if there are additional changes that are not documented yet on Netatmo side.
from netatmo.
Did you look at the link
https://dev.netatmo.com/apidocumentation/oauth
They show the first post as:
https://api.netatmo.com/oauth2/authorize?
client_id=[YOUR_APP_ID]
&redirect_uri=[YOUR_REDIRECT_URI]
&scope=[SCOPE_SPACE_SEPARATED]
&state=[SOME_ARBITRARY_BUT_UNIQUE_STRING
I think this has to be done before you can even request a token.
from netatmo.
I have a valid Access and Refresh token (I was also able to get data with that token). It was generated on the My Apps Page
from netatmo.
I used your temporary fix with the tokens from My Apps Page. Works for now. Thanks for your help.
from netatmo.
You're welcome. But this token needs to be renewed at some point in time (I think it was working for ~3 hours on my side). And this token refreshment was not yet working for me for some reason...
from netatmo.
I have created a PR #168 with a quick fix for this issue
from netatmo.
I think I need a rewrite of this library for better handler Netatmo API's and use new C# features...
from netatmo.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netatmo.