#FYTA
1 messages ยท Page 1 of 1 (latest)
Good question. Frankly I'm not sure
I mean you can try it out for yourself
But the token has an expiration date (that is also returned), so I assume it is for more than one session
Like this isn't particularly a special case
Ah right
I mean, if it has an expiration date, it will expire so you need the credentials again
yes
I think I would need to save the expiration date locally and test before a request, if token expired
So how you would approach it is just a config flow, in which you test the credentials
And then every time at boot you request a new token
And whenever the token used is expired, you request a new one
Yes, exactly.
Do you want to make it a core integration or do you want to go custom?
At least for the beginning a custom
I'm not sure how many users could be interested in it
This sounds like a good integration to take to core at least ๐
But you also said you have trouble creating a request, I can link you some libs I made and maybe that will give you some inspiration ๐
Yes, that would be helpful.
It's my first integration and therefore I'm a bit overwhelmed and find it the most efficient way to learn from examples
Hah I get that, feel free to ask for examples for little things
As in, there is probably not 1 integration that will be a holy grail, but combining some concepts used within integrations, is also nice
Yes indeed. I'm good in compiling and combining g.
Thanks for your swift help, much appreciated!