There’s surprisingly little documentation online or in the maxurl help file for establishing a connection between an API online and a max patch. I’ve spent the past few days searching around the Cycling 74 forums and reading wikis/docs on dev sites for implementing APIs.
Here’s what I think I know so far:
- You can access an API through [maxurl] if you have the specific URL and string of relevant commands within the URL. Example: http://api.twitch.com/helix&ID=108294&pass=foo&show_channel_id would theoretically log me in and authenticate to the API, and the command is to find the channel information on my twitch channel.
- You usually have to register an application to use it. I don’t currently have webspace for a redirect URL. So… that’s a problem
- Once [maxurl] gets a page, it prints to a dict object. Not sure where to go from there. Do I modify the dict object to get my data, or does it all happen in the URL address string?
I realize there’s examples of sonifying all sorts of data online, but not much documentation on the steps to get there. My end goal is a sort of “twitch plays pokemon” but built around live, crowd sourced audio-visuals and generative music sequencers. Ideally, users log into my chat, and commands/text is sent back to Max. Max sonifies that data and creates visuals in jitter, those get sent back to Twitch through OBS (open broadcasting software).
Any help is appreciated. This would be a great grad student project for me to do… (I have a lot more free time than when I was working 50hrs a week)
Thanks for your time y’all!