C# Class Desk.DeskApi

Inheritance: IDeskApi
Afficher le fichier Open project: danielsaidi/desk-csharp-sdk

Private Properties

Свойство Type Description
GetClient RestSharp.RestClient
GetRequest RestSharp.RestRequest

Méthodes publiques

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

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

Method Details

Call() public méthode

public Call ( IRestRequest request ) : IRestResponse
request IRestRequest
Résultat IRestResponse

Call() public méthode

public Call ( string resource, Method method ) : IRestResponse
resource string
method Method
Résultat IRestResponse

DeskApi() public méthode

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

DeskApi() public méthode

public DeskApi ( string apiUrlBase, string apiKey, string apiSecret, string apiToken, string apiTokenSecret ) : System
apiUrlBase string
apiKey string
apiSecret string
apiToken string
apiTokenSecret string
Résultat System