-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API Keys Support #16
Comments
Seems like a reasonable ask. |
Just for the sake of it, your IoT button can trigger any script? |
Thank you, I can't wait to see how one can deploy your solution in the own home network.
Good questions. It has been a while since I set up the button. But I quickly checked and yes it triggers a lambda function on AWS which runs node. So technically, I could do some more requests than just the one triggering the feed endpoint.
Yeah, you are right. Makes sense. So this is the sequence of requests, correct?
And I need to do this every time I hit the button because the token expires. 👍 Question though: what's the difference for you compared to API keys in that regard? I need a key (email+password) to obtain one that expires to get to the result I want. My code still needs to know the secrets (email+pw in this case). It's the expiration factor, isn't it? 🤔 |
I would say that the process would be two step:
Later, with the API token it'll be something like:
|
Hi @Dean151, just for the record, I want to confirm that steps 1 and 2 work flawlessly for my use case but require a server/serverless endpoint available somewhere. It's not a big deal with Vercel, for instance, though. |
Hi @Dean151,
once again, thank you for creating a replacement for the deprecated and now offline API for our pet feeder devices. I'm playing with your API, and I can't wait to see the final Deployment section in the README to set this up in my local network.
Until then, I've another feature request that's gonna be helpful when using the API with Smart Home Buttons like the AWS IoT Button and others: API Keys.
Feature Request
feeders/{id}/feed
andfeeders/{id}/planning
endpointI ask for API keys as I am unsure how long the authentication token is valid without me updating IoT button requests again and again.
Thank you very much!
The text was updated successfully, but these errors were encountered: