C# Class Visual.ApiProvider

Inheritance: IApiProvider
显示文件 Open project: 23/23-api-dotnet

Public Methods

Method Description
ApiProvider ( string consumerDomain ) : System

Creates a 23 API service repository, that relies only on public access to the API

ApiProvider ( string consumerDomain, string consumerKey, string consumerSecret ) : System

Creates a 23 API service repository, that requires further authentication approval. When using this constructor, you should consider rewriting the token manager (InMemoryTokenManager) to let your application handle access tokens

ApiProvider ( string consumerDomain, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, bool httpSecure ) : System

Creates a 23 API service repository, that doesn't require further authentication. Account must be "privileged"

DoRequest ( DotNetOpenAuth.Messaging.MessageReceivingEndpoint message ) : XPathNavigator
DoRequest ( DotNetOpenAuth.Messaging.MessageReceivingEndpoint message, List parameters ) : XPathNavigator
GetRequestUrl ( string method, List parameters ) : string
SetProxy ( string uri, string username = null, string password = null, string domain = null ) : void

Method Details

ApiProvider() public method

Creates a 23 API service repository, that relies only on public access to the API
public ApiProvider ( string consumerDomain ) : System
consumerDomain string /// Domain name ///
return System

ApiProvider() public method

Creates a 23 API service repository, that requires further authentication approval. When using this constructor, you should consider rewriting the token manager (InMemoryTokenManager) to let your application handle access tokens
public ApiProvider ( string consumerDomain, string consumerKey, string consumerSecret ) : System
consumerDomain string Domain name
consumerKey string Consumer key
consumerSecret string Consumer secret
return System

ApiProvider() public method

Creates a 23 API service repository, that doesn't require further authentication. Account must be "privileged"
public ApiProvider ( string consumerDomain, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, bool httpSecure ) : System
consumerDomain string Domain name
consumerKey string Consumer key
consumerSecret string Consumer secret
accessToken string Access token
accessTokenSecret string Access token secret
httpSecure bool
return System

DoRequest() public method

public DoRequest ( DotNetOpenAuth.Messaging.MessageReceivingEndpoint message ) : XPathNavigator
message DotNetOpenAuth.Messaging.MessageReceivingEndpoint
return System.Xml.XPath.XPathNavigator

DoRequest() public method

public DoRequest ( DotNetOpenAuth.Messaging.MessageReceivingEndpoint message, List parameters ) : XPathNavigator
message DotNetOpenAuth.Messaging.MessageReceivingEndpoint
parameters List
return System.Xml.XPath.XPathNavigator

GetRequestUrl() public method

public GetRequestUrl ( string method, List parameters ) : string
method string
parameters List
return string

SetProxy() public method

public SetProxy ( string uri, string username = null, string password = null, string domain = null ) : void
uri string
username string
password string
domain string
return void