dustinlakin / twitch-rb

Twitch API gem
MIT License
51 stars 28 forks source link

Lack of App Access Tokens authorization method #32

Open Ianphorsman opened 6 years ago

Ianphorsman commented 6 years ago

twitch.auth(...) cannot provide an app token, because the response code isn't changeable from "authorization_code" to "client_credentials", and a redirect_uri is forced to be supplied. I had to authorize my app like this: @twitch.adapter.post(url, :body => { :client_id => @client_id, :client_secret => @client_secret, :grant_type => 'client_credentials', :scope => @scope })

Unless I missed this functionality, maybe it could be added as a method like:

@twitch.app_auth()