#FYTA

1 messages ยท Page 1 of 1 (latest)

blissful ice
#

Subsequent -> all requests? Or all requests in that session?

odd eagle
#

Good question. Frankly I'm not sure

blissful ice
#

I mean you can try it out for yourself

odd eagle
#

But the token has an expiration date (that is also returned), so I assume it is for more than one session

blissful ice
#

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

odd eagle
#

yes

#

I think I would need to save the expiration date locally and test before a request, if token expired

blissful ice
#

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

odd eagle
#

Yes, exactly.

blissful ice
#

Do you want to make it a core integration or do you want to go custom?

odd eagle
#

At least for the beginning a custom

#

I'm not sure how many users could be interested in it

blissful ice
#

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 ๐Ÿ™‚

odd eagle
#

Yes, that would be helpful.

odd eagle
#

It's my first integration and therefore I'm a bit overwhelmed and find it the most efficient way to learn from examples

blissful ice
#

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

odd eagle
#

Thanks for your swift help, much appreciated!