module Twitcr::REST

Direct including types

Defined in:

twitcr/rest.cr

Constant 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

Instance Method Detail

def get_token #

[View source]
def get_user_by_id(id : Int64) #

[View source]
def get_user_by_login(login : String) #

[View source]
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


[View source]