module Twitcr::REST
Direct including types
Defined in:
twitcr/rest.crConstant Summary
-
API_BASE =
"https://api.twitch.tv/helix"
-
EMPTY_RESULT =
Exception.new("Empty Result")
-
SSL_CONTEXT =
OpenSSL::SSL::Context::Client.new
-
Mixin for interacting with Twitch's REST API
Instance Method Summary
- #get_token
- #get_user_by_id(id : Int64)
- #get_user_by_login(login : String)
-
#request(method : String, route : String, version = "5", headers = HTTP::Headers.new, body : String | Nil = nil)
Executes an HTTP request against the API_BASE url
Instance Method Detail
def request(method : String, route : String, version = "5", headers = HTTP::Headers.new, body : String | Nil = nil)
#
Executes an HTTP request against the API_BASE url