C# 클래스 TwitchLib.TwitchApiv5

Static class with functionality for Twitch API calls using version 5.
파일 보기 프로젝트 열기: swiftyspiffy/TwitchLib

Private Properties

프로퍼티 타입 설명
MakeGetRequest Task
MakeRestRequest Task
handleWebException void

공개 메소드들

메소드 설명
GetUsers ( string username ) : Task>

Retrieves User object from Twitch including important Id

SetAccessToken ( string accessToken ) : void

Sets Access Token, which is saved in memory. This is not necessary, as tokens can be passed into Api calls.

SetClientId ( string clientId ) : void

Sets ClientId, which is required for all API calls. Also validates ClientId. Client-Id to bind to TwitchApi.

비공개 메소드들

메소드 설명
MakeGetRequest ( string url, string accessToken = null ) : Task
MakeRestRequest ( string url, string method, string requestData = null, string accessToken = null ) : Task
handleWebException ( WebException e ) : void

메소드 상세

GetUsers() 공개 정적인 메소드

Retrieves User object from Twitch including important Id
public static GetUsers ( string username ) : Task>
username string username of the of the user
리턴 Task>

SetAccessToken() 공개 정적인 메소드

Sets Access Token, which is saved in memory. This is not necessary, as tokens can be passed into Api calls.
public static SetAccessToken ( string accessToken ) : void
accessToken string Twitch account OAuth token to store in memory.
리턴 void

SetClientId() 공개 정적인 메소드

Sets ClientId, which is required for all API calls. Also validates ClientId. Client-Id to bind to TwitchApi.
public static SetClientId ( string clientId ) : void
clientId string
리턴 void