示例#1
0
        // Reference: https://dev.twitch.tv/docs/v5/reference/channels/#get-channel-followers
        public static async Task <RootFollowerJSON> GetFollowersByChannel(string clientId)
        {
            string apiUriBaseCall = "https://api.twitch.tv/kraken/channels/" + _broadcasterInstance.TwitchId
                                    + "/follows?limit=50&direction=desc"; // get 50 newest followers

            return(await ApiTwitchRequest.GetExecuteAsync <RootFollowerJSON>(apiUriBaseCall, clientId));
        }
示例#2
0
        // Reference: https://dev.twitch.tv/docs/v5/reference/clips/#get-clip
        public static async Task <ClipJSON> GetClip(string clientId, string slug)
        {
            string apiUriBaseCall = "https://api.twitch.tv/kraken/clips/" + slug;

            return(await ApiTwitchRequest.GetExecuteAsync <ClipJSON>(apiUriBaseCall, clientId));
        }
示例#3
0
 // Reference: https://dev.twitch.tv/docs/v5/reference/users/#get-users
 public static async Task <RootUserJSON> GetUsersByLoginName(string loginName, string clientId)
 {
     return(await ApiTwitchRequest.GetExecuteAsync <RootUserJSON>("https://api.twitch.tv/kraken/users?login=" + loginName, clientId));
 }
示例#4
0
 // Reference: https://dev.twitch.tv/docs/v5/reference/streams/#get-stream-by-user
 public static async Task <RootStreamJSON> GetUserStream(string userId, string clientId)
 {
     return(await ApiTwitchRequest.GetExecuteAsync <RootStreamJSON>("https://api.twitch.tv/kraken/streams/" + userId, clientId));
 }
示例#5
0
 // Reference: https://dev.twitch.tv/docs/v5/reference/streams/#get-stream-by-user
 public static async Task <RootStreamJSON> GetBroadcasterStream(string clientId)
 {
     return(await ApiTwitchRequest.GetExecuteAsync <RootStreamJSON>("https://api.twitch.tv/kraken/streams/" + _broadcasterInstance.TwitchId, clientId));
 }
示例#6
0
 // Reference: https://dev.twitch.tv/docs/v5/reference/channels/#get-channel-by-id
 public static async Task <ChannelJSON> GetUserChannelById(string userId, string clientId)
 {
     return(await ApiTwitchRequest.GetExecuteAsync <ChannelJSON>("https://api.twitch.tv/kraken/channels/" + userId, clientId));
 }
示例#7
0
 // Reference: https://dev.twitch.tv/docs/v5/reference/channels/#get-channel-by-id
 public static async Task <ChannelJSON> GetBroadcasterChannelById(string clientId)
 {
     return(await ApiTwitchRequest.GetExecuteAsync <ChannelJSON>("https://api.twitch.tv/kraken/channels/" + _broadcasterInstance.TwitchId, clientId));
 }