Giter Club home page Giter Club logo

Comments (9)

Riges avatar Riges commented on September 26, 2024 3

1.5.3 published on Nuget

from netatmo.

TheAxelander avatar TheAxelander commented on September 26, 2024

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.

TheAxelander avatar TheAxelander commented on September 26, 2024

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.

image

from netatmo.

MurphyLuth avatar MurphyLuth commented on September 26, 2024

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.

TheAxelander avatar TheAxelander commented on September 26, 2024

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.

MurphyLuth avatar MurphyLuth commented on September 26, 2024

I used your temporary fix with the tokens from My Apps Page. Works for now. Thanks for your help.

from netatmo.

TheAxelander avatar TheAxelander commented on September 26, 2024

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.

TheAxelander avatar TheAxelander commented on September 26, 2024

I have created a PR #168 with a quick fix for this issue

from netatmo.

Riges avatar Riges commented on September 26, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.