class Twitch::Client
- Twitch::Client
- Reference
- Object
Defined in:
twitch/twitch_client.crConstructors
Instance Method Summary
- #bot_user : User
- #config : Config
- #delete(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}) : HTTP::Client::Response
- #get(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}) : HTTP::Client::Response
- #get_chatters(broadcaster_id : String) : Array(String)
- #get_user(username : String) : User
- #patch(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
- #post(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
-
#post_create_eventsub(type : String, version : String, condition : NamedTuple, session_id : String)
TODO support webhook
- #put(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
- #validate : Bool
- #validate! : Nil
Constructor Detail
Instance Method Detail
def delete(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}) : HTTP::Client::Response
#
def get(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}) : HTTP::Client::Response
#
def patch(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
#
def post(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
#
def post_create_eventsub(type : String, version : String, condition : NamedTuple, session_id : String)
#
TODO support webhook
def put(url : String, query_params : Hash(String, String) | NamedTuple | Nil = nil, headers : HTTP::Headers = HTTP::Headers {"Authorization" => "Bearer #{@config.token.access_token}", "Client-Id" => @config.client_id}, body : Hash | NamedTuple | Nil = nil) : HTTP::Client::Response
#