Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 735 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 735 Bytes

ExTwitch

ExTwitch is a early stage development of an Elixir client implementation for the new Twitch API

Setup

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>

Example Usage

An example of querying the /users endpoint

{:ok, users} = ExTwitch.API.users(login: ["malgasm"])

Run the tests

mix deps.get
mix test

NOTE: If you change the TWITCH_CLIENT_ID and the TWITCH_SECRET remember to run a mix clean