Skip to content
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

Programatically update buttons #1

Open
CBenni opened this issue Oct 28, 2018 · 5 comments
Open

Programatically update buttons #1

CBenni opened this issue Oct 28, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@CBenni
Copy link

CBenni commented Oct 28, 2018

Is there a way to update the buttons programmatically, say, through an API?
From what I can gather via the README, the backend is no longer used (I assume thanks to the new twitch extension datastore?) - can 3rd party apps interact with that by any chance?
Thanks!

@noahm
Copy link
Owner

noahm commented Oct 28, 2018 via email

@CBenni
Copy link
Author

CBenni commented Oct 29, 2018

I mean, plenty of extensions have integrations with external services, usually in liaison with complex web applications however. I am not sure if there's anything that implements a "minimal" implementation of external API access.
I am not too well-accustomed to twitchs new data store API, but would it be possible to just expose the authentication keys used broadcaster side (in the configuration dialog, for example) and allowing 3rd party services to directly interact with storage for said channel?
Thanks!

@noahm
Copy link
Owner

noahm commented Oct 29, 2018

No, that's not really possible. All access to the amazon data store is authenticated via JWT signatures which have a fixed expiration date.

I would have to re-introduce a backend specifically for this extension to provide a public API for this sort of use. The main question I have is how to handle authentication for those requests, and I'm afraid the only answer is implementing twitch OAuth login. (quite a bit of work)

@CBenni
Copy link
Author

CBenni commented Oct 30, 2018

Ah, fair enough. Thanks for you response!

@noahm noahm added the enhancement New feature or request label Oct 30, 2018
@noahm
Copy link
Owner

noahm commented Oct 30, 2018

No worries, it's a great suggestion just the same and I'd love to add a public API eventually! I'll leave this open as the task to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants