This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Home Connect
#7
(09.03.2021, 06:54)admin Wrote: After getting the device code you should send periodical requests to https://api.home-connect.com/security/oauth/token until you get a "200 OK" response. This will get you an access_token and a refresh_token. Put both into storage and use the access_token for all normal API calls. Since this token expires in one day you will need a scheduled script that will exchange the refresh_token for a new
access_token/refresh_token.
What would be the best practice for getting the scrip mentioned above just to run once? Make an event script, and put the code in memory?

Sent fra min SM-G980F via Tapatalk
Reply


Messages In This Thread
Home Connect - by tomnord - 24.11.2020, 21:00
RE: Home Connect - by Erwin van der Zwart - 25.11.2020, 22:15
Home Connect - by tomnord - 11.02.2021, 21:17
RE: Home Connect - by admin - 12.02.2021, 12:17
RE: Home Connect - by tomnord - 08.03.2021, 20:03
RE: Home Connect - by admin - 09.03.2021, 06:54
RE: Home Connect - by tomnord - 09.03.2021, 15:32
RE: Home Connect - by Daniel - 09.03.2021, 15:44

Forum Jump: