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.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()