C# Class SteamAuth.SteamWeb

Exibir arquivo Open project: geel9/SteamAuth Class Usage Examples

Public Methods

Method Description
MobileLoginRequest ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null ) : string

Perform a mobile login request

Request ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : string
Request ( string url, string method, string dataString = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : string
RequestAsync ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : Task

Private Methods

Method Description
HandleFailedWebRequestResponse ( HttpWebResponse response, string requestURL ) : void

Raise exceptions relevant to this HttpWebResponse -- EG, to signal that our oauth token has expired.

Method Details

MobileLoginRequest() public static method

Perform a mobile login request
public static MobileLoginRequest ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null ) : string
url string API url
method string GET or POST
data System.Collections.Specialized.NameValueCollection Name-data pairs
cookies System.Net.CookieContainer current cookie container
headers System.Collections.Specialized.NameValueCollection
return string

Request() public static method

public static Request ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : string
url string
method string
data System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieContainer
headers System.Collections.Specialized.NameValueCollection
referer string
return string

Request() public static method

public static Request ( string url, string method, string dataString = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : string
url string
method string
dataString string
cookies System.Net.CookieContainer
headers System.Collections.Specialized.NameValueCollection
referer string
return string

RequestAsync() public static method

public static RequestAsync ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, NameValueCollection headers = null, string referer = APIEndpoints.COMMUNITY_BASE ) : Task
url string
method string
data System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieContainer
headers System.Collections.Specialized.NameValueCollection
referer string
return Task