C# Class SteamAuth.SteamWeb

Afficher le fichier Open project: geel9/SteamAuth Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat string

Request() public static méthode

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
Résultat string

Request() public static méthode

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
Résultat string

RequestAsync() public static méthode

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
Résultat Task