Importing user data from an API


(Courtney Vigo) #1

Is it possible to import data such as user name, donation amount, and corresponding widget with animation from an API?


#2

Basically … yes. Any data that can be accessible by an API could be used within Hype. I say could because it depends on what API. Without any other information I cannot say yes for definite.

I’m not sure about the “widget with animation” again more info on the API or the widget would be better to say yes or no.


(Courtney Vigo) #3

For Example, If I was pulling information from Twitch about users for a widget I was creating. I would need userName, donation amount, and bit data. The “widgets” I was talking about are these animated images that are located on twitch’s API


(Courtney Vigo) #4

… and this needs to be scalable so that we can add features later on.


#5

You can use the ‘setElementProperty’ function to adjust properties, which also opens up the possibility for animations dependent on external values.

You would likely use this API:


(Courtney Vigo) #6

Thank you