C# 클래스 WhatCD.Http

파일 보기 프로젝트 열기: frankston/WhatAPI 1 사용 예제들

공개 메소드들

메소드 설명
GetFlacLogScore ( string log, string authKey ) : int

Determines the rip log score out of 100.

Http ( string username, string password ) : System

Attempts to authenticate to WhatCD server and creates a new logged-on session.

Logoff ( string authKey ) : void

Logs off the current What.CD session.

RequestBytes ( Uri uri, string query, string &contentDisposition, string &contentType ) : byte[]

Performs a binary request.

RequestJson ( Uri uri, string query ) : string

Performs a JSON request.

비공개 메소드들

메소드 설명
ExtractLogScore ( string html ) : int

Attempts to extract a log files' score (out of 100) from the WhatCD log checker html. Note that the json api currently does not support this feature.

Login ( string username, string password ) : void

Logs a user in to What.CD and stores session cookies.

메소드 상세

GetFlacLogScore() 공개 메소드

Determines the rip log score out of 100.
public GetFlacLogScore ( string log, string authKey ) : int
log string Log file contents.
authKey string WhatCD users' authentication key.
리턴 int

Http() 공개 메소드

Attempts to authenticate to WhatCD server and creates a new logged-on session.
public Http ( string username, string password ) : System
username string WhatCD username.
password string WhatCD password.
리턴 System

Logoff() 공개 메소드

Logs off the current What.CD session.
public Logoff ( string authKey ) : void
authKey string WhatCD users' authentication key.
리턴 void

RequestBytes() 공개 메소드

Performs a binary request.
public RequestBytes ( Uri uri, string query, string &contentDisposition, string &contentType ) : byte[]
uri System.Uri Base URI.
query string Request arguments (appended to the base URI).
contentDisposition string
contentType string
리턴 byte[]

RequestJson() 공개 메소드

Performs a JSON request.
public RequestJson ( Uri uri, string query ) : string
uri System.Uri Base URI.
query string Request arguments (appended to the base URI).
리턴 string