Hello folks!
Today I am starting a new "journey" to use the Twitch API
the news is that all my captions now are being saved as .srt files
so I will be able to upload them to YT later
I always wanted to turn them into "real" captions :) so finally
I hope this works :D
anyways, I'd like to start by showing you around
this is the project I'm working on
I still have to write some docs for this project
but basicaly it is a little cli app
with various tools that I use for streaming
such as this captioner. and the chat on the right
we have built some interesting things in the last month
using Imagick
now I'm interested in leveraging those image widgets 
in different ways. 
but I will need to work with the Twitch API to do more
so that's what I'm getting started at today
I might be a bit more "silent" while I'm reading the docs :)
so, right now I'm just creating a new Twitch extension
in the developers portal
I still don't really know if we need this stuff
let's go check the docs now, see what we need
our goal for today is: obtain the latest Twitch follower(s)
I think this is the endpoint we need
well, let's try this
first, I will require a tiny curl library I use in my projects
I already copied the client_id to my application config
I will create a TwitchService class
so I can register it within the app, and access more easily from controllers
hey @Pachicodes yaaaay \o/
we'll need our user id 
I think this will do
so we might need to specify the user login in the config file
actually just remembered that we have this info for the chat
I will have to check about authorization
not sure if the client_id from the app is enough.. probably noth
we'll need to register this service, then call it from a command
I doubt this will work in the first try, but we build from there :D
creating now a new twitch command
lets see what happens when I run this thing :P
oooof
but that is expected
we didn't pass any auth info
not even the client id
oooi @pokemao & galere!
we have at least a skeleton working now we can fix the request
we need to add the Client-ID to the header
also, I want to add some debug messages
lets run it again and see the errors
hmm, 404
sometimes it can still be auth-related thou
i know that this is happening when we try to get the user ID
and this requires an Auth header apparently
hmm actually
it seems the Bearer is not mandatory
or is it? :D
I think I should need to obtain a personal OAuth
token
let me find where this could be
ah
should I install it first? probably 
this stuff can all be customized
but I really just wanted a personal oauth token
maybe this? 
gonna change screens to copy this key :D
copying...
ok
lets try
just testing
we'll see if anything changes now
just chekcing with the docs, looks like this
but still not sure this is the right token
we have to make sure the url is right
cool! now at least we reached a point where we know whats going on
I'm out of time for today, but we'll continue :)
thanks for all who could join me today! 
I think this is going to be a fun implementation.
hope to see y'all in the next episodes so we can continue this work!
cheers, see you next time
