From 60d2d3b03f7226261f26ab21d2aa858fc3542d97 Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Sat, 21 Aug 2021 22:31:40 -0400 Subject: [PATCH] Add Twitch API urls to constants --- lib/constants.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/constants.dart b/lib/constants.dart index 6793aebd..78a35000 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -1,7 +1,13 @@ import 'package:frosty/models/channel.dart'; -/// The twitch IRC websocket channel -const twitchIrc = 'wss://irc-ws.chat.twitch.tv:443'; +/// The twitch IRC websocket channel. +const twitchIrcUrl = 'wss://irc-ws.chat.twitch.tv:443'; + +/// The URL for getting Twitch user information. +const twitchUsersUrl = 'https://api.twitch.tv/helix/users'; + +/// The URL for validating Twitch OAuth tokens. +const twitchValidateUrl = 'https://id.twitch.tv/oauth2/validate'; /// Sample channel objects for testing/preview purposes. const SampleChannels = [