C# 클래스 BotR.API.BotRAPI

파일 보기 프로젝트 열기: sol1/botr.NET 1 사용 예제들

공개 메소드들

메소드 설명
BotRAPI ( string key, string secret ) : System
BotRAPI ( string url, string version, string key, string secret ) : System
Call ( string apiCall ) : string

Call the API method with no params beyond the required

Call ( string apiCall, NameValueCollection args ) : string

Call the API method with additional, non-required params

Upload ( string uploadUrl, NameValueCollection args, string filePath ) : string

Upload a file to account with optional arguments

Upload ( string uploadUrl, string filePath ) : string

Upload a file to account without optional arguments

비공개 메소드들

메소드 설명
UrlEncodeUCase ( string data, Encoding enc ) : string

Convert hex chars to uppercase as per OAuth-spec requirement

buildArgs ( ) : void

Append required arguments to URL

createWebClient ( ) : WebClient

Construct instance of WebClient for request

getUnixTime ( ) : int

Get timestamp in Unix format

queryStringToArgs ( ) : void

Convert args collection to ordered string

signArgs ( ) : string

Hash the provided arguments

메소드 상세

BotRAPI() 공개 메소드

public BotRAPI ( string key, string secret ) : System
key string
secret string
리턴 System

BotRAPI() 공개 메소드

public BotRAPI ( string url, string version, string key, string secret ) : System
url string
version string
key string
secret string
리턴 System

Call() 공개 메소드

Call the API method with no params beyond the required
public Call ( string apiCall ) : string
apiCall string The path to the API method call (/videos/list)
리턴 string

Call() 공개 메소드

Call the API method with additional, non-required params
public Call ( string apiCall, NameValueCollection args ) : string
apiCall string The path to the API method call (/videos/list)
args System.Collections.Specialized.NameValueCollection Additional, non-required arguments
리턴 string

Upload() 공개 메소드

Upload a file to account with optional arguments
public Upload ( string uploadUrl, NameValueCollection args, string filePath ) : string
uploadUrl string The url returned from /videos/create call
args System.Collections.Specialized.NameValueCollection Optional args (video meta data)
filePath string Path to file to upload
리턴 string

Upload() 공개 메소드

Upload a file to account without optional arguments
public Upload ( string uploadUrl, string filePath ) : string
uploadUrl string The url returned from /videos/create call
filePath string Path to file to upload
리턴 string