class Twitch::Config

Defined in:

twitch/config.cr
twitch/config/token.cr

Constant Summary

DEFAULT_TOKEN_DIRECTORY = "./secrets"
SCOPE = Set {"channel:edit:commercial", "channel:manage:polls", "chat:edit", "chat:read", "channel:moderate", "channel:read:redemptions", "channel:read:subscriptions", "moderator:manage:banned_users", "moderator:manage:chat_messages", "moderator:manage:chat_settings", "moderator:read:chatters"}

Constructors

Instance Method Summary

Constructor Detail

def self.new(username : String, token_directory : String = DEFAULT_TOKEN_DIRECTORY) #

[View source]

Instance Method Detail

def client_id : String #

[View source]
def client_secret : String #

[View source]
def refresh_token! : Nil #

[View source]
def token : Token #

[View source]
def token=(token : Token) #

[View source]
def token_path : String #

[View source]
def username : String #

[View source]