C# Class Desk.DeskApi

Inheritance: IDeskApi
Mostra file Open project: danielsaidi/desk-csharp-sdk

Private Properties

Property Type Description
GetClient RestSharp.RestClient
GetRequest RestSharp.RestRequest

Public Methods

Method Description
Call ( IRestRequest request ) : IRestResponse
Call ( string resource, Method method ) : IRestResponse
DeskApi ( string apiUrlBase, string username, string password ) : System

This constructor is used for Basic Authentication against the Desk API. Use this method when you only require access to your own account. Desk documentation: http://bit.ly/1jNfykh

DeskApi ( string apiUrlBase, string apiKey, string apiSecret, string apiToken, string apiTokenSecret ) : System

Private Methods

Method Description
GetClient ( ) : RestSharp.RestClient
GetRequest ( Method method, string resource ) : RestRequest

Method Details

Call() public method

public Call ( IRestRequest request ) : IRestResponse
request IRestRequest
return IRestResponse

Call() public method

public Call ( string resource, Method method ) : IRestResponse
resource string
method Method
return IRestResponse

DeskApi() public method

This constructor is used for Basic Authentication against the Desk API. Use this method when you only require access to your own account. Desk documentation: http://bit.ly/1jNfykh
public DeskApi ( string apiUrlBase, string username, string password ) : System
apiUrlBase string
username string
password string
return System

DeskApi() public method

public DeskApi ( string apiUrlBase, string apiKey, string apiSecret, string apiToken, string apiTokenSecret ) : System
apiUrlBase string
apiKey string
apiSecret string
apiToken string
apiTokenSecret string
return System