ExTwitch is a early stage development of an Elixir client implementation for the new Twitch API
Create a Twitch app, and then export the clientId
and the secret
as environment variables:
export TWITCH_CLIENT_ID=<YOUR_CLIENT_ID>
export TWITCH_SECRET=<YOUR_SECRET>
An example of querying the /users
endpoint
{:ok, users} = ExTwitch.API.users(login: ["joebew42"])
mix deps.get
mix test
NOTE: If you change the TWITCH_CLIENT_ID
and the TWITCH_SECRET
remember to run a mix clean