C# Class CartoDBClient.oAuthCartoDB

Inheritance: OAuthBase
Mostra file Open project: thedatarepublic/CartoDBClientDotNET Class Usage Examples

Public Properties

Property Type Description
ACCESS_TOKEN string
AUTHORIZE string
REQUEST_TOKEN string
SCOPE string
XAUTH_ACCESS_TOKEN string

Public Methods

Method Description
AccessTokenGet ( string authToken, string verifier ) : void

Exchange the request token for an access token.

AuthorizationLinkGet ( ) : string

Get the link to CartoDB's authorization page for this application.

WebRequest ( Method method, string url, string postData ) : string

Web Request Wrapper

WebResponseGet ( HttpWebRequest webRequest ) : string

Process the web response.

oAuthCartoDBQuery ( string query ) : string

Exchange the username and password for an access token.

oAuthWebRequest ( Method method, string url, string postData ) : string

Submit a web request using oAuth.

xAuthAccessTokenGet ( ) : void

Exchange the username and password for an access token.

Method Details

AccessTokenGet() public method

Exchange the request token for an access token.
public AccessTokenGet ( string authToken, string verifier ) : void
authToken string The oauth_token is supplied by CartoDB's authorization page following the callback.
verifier string
return void

AuthorizationLinkGet() public method

Get the link to CartoDB's authorization page for this application.
public AuthorizationLinkGet ( ) : string
return string

WebRequest() public method

Web Request Wrapper
public WebRequest ( Method method, string url, string postData ) : string
method Method Http Method
url string Full url to the web resource
postData string Data to post in querystring format
return string

WebResponseGet() public method

Process the web response.
public WebResponseGet ( HttpWebRequest webRequest ) : string
webRequest System.Net.HttpWebRequest The request object.
return string

oAuthCartoDBQuery() public method

Exchange the username and password for an access token.
public oAuthCartoDBQuery ( string query ) : string
query string
return string

oAuthWebRequest() public method

Submit a web request using oAuth.
public oAuthWebRequest ( Method method, string url, string postData ) : string
method Method GET or POST
url string The full url, including the querystring.
postData string Data to post (querystring format)
return string

xAuthAccessTokenGet() public method

Exchange the username and password for an access token.
public xAuthAccessTokenGet ( ) : void
return void

Property Details

ACCESS_TOKEN public_oe property

public string ACCESS_TOKEN
return string

AUTHORIZE public_oe property

public string AUTHORIZE
return string

REQUEST_TOKEN public_oe property

public string REQUEST_TOKEN
return string

SCOPE public_oe property

public string SCOPE
return string

XAUTH_ACCESS_TOKEN public_oe property

public string XAUTH_ACCESS_TOKEN
return string