C# Класс Desk.DeskApi

Наследование: IDeskApi
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetClient RestSharp.RestClient
GetRequest RestSharp.RestRequest

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetClient ( ) : RestSharp.RestClient
GetRequest ( Method method, string resource ) : RestRequest

Описание методов

Call() публичный Метод

public Call ( IRestRequest request ) : IRestResponse
request IRestRequest
Результат IRestResponse

Call() публичный Метод

public Call ( string resource, Method method ) : IRestResponse
resource string
method Method
Результат IRestResponse

DeskApi() публичный Метод

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
Результат System

DeskApi() публичный Метод

public DeskApi ( string apiUrlBase, string apiKey, string apiSecret, string apiToken, string apiTokenSecret ) : System
apiUrlBase string
apiKey string
apiSecret string
apiToken string
apiTokenSecret string
Результат System