Top Level Namespace

Defined in:

Constant Summary

ACCESS_TOKEN = Base64.urlsafe_encode((CLIENT_ID + ":") + CLIENT_SECRET)
CLIENT_ID = ENV["JOYSTICKTV_CLIENT_ID"]
CLIENT_SECRET = ENV["JOYSTICKTV_CLIENT_SECRET"]
GATEWAY_IDENTIFIER = "{\"channel\": \"GatewayChannel\"}"
HOST = URI.parse(ENV["JOYSTICKTV_HOST"])
MAGIC_WORD = "tacos"
OAUTH_CLIENT = OAuth2::Client.new(HOST.host.to_s, CLIENT_ID, CLIENT_SECRET, port: HOST.port, scheme: HOST.scheme.to_s, redirect_uri: "/unused", authorize_uri: "/api/oauth/authorize", token_uri: "/api/oauth/token")
URL = "#{WS_HOST}?token=#{ACCESS_TOKEN}"
WS_HOST = ENV["JOYSTICKTV_API_HOST"]