C# Class ZendeskApi_v2.ZendeskApi

Inheritance: IZendeskApi
Datei anzeigen Open project: mozts2005/ZendeskApi_v2 Class Usage Examples

Public Methods

Method Description
ByteArrayToHexString ( byte Bytes ) : string
GetLoginUrl ( string name, string email, string authenticationToken, string returnToUrl = "" ) : string
Md5 ( string strChange ) : string
ZendeskApi ( IWebProxy proxy, string yourZendeskUrl, string user, string password ) : System

Constructor that takes 3 params.

ZendeskApi ( string yourZendeskUrl, string p_OauthToken ) : System

Constructor that takes 2 params.

ZendeskApi ( string yourZendeskUrl, string user, string password ) : System

Constructor that takes 3 params.

ZendeskApi ( string yourZendeskUrl, string user, string apiToken, string locale ) : System

Constructor that takes 4 params.

ZendeskApi ( string yourZendeskUrl, string user, string password, string apiToken, string locale, string p_OAuthToken ) : System

Constructor that takes 6 params.

Private Methods

Method Description
GetFormattedZendeskUrl ( string yourZendeskUrl ) : Uri
GetUnixEpoch ( System.DateTime dateTime ) : double

Method Details

ByteArrayToHexString() public method

public ByteArrayToHexString ( byte Bytes ) : string
Bytes byte
return string

GetLoginUrl() public method

public GetLoginUrl ( string name, string email, string authenticationToken, string returnToUrl = "" ) : string
name string
email string
authenticationToken string
returnToUrl string
return string

Md5() public method

public Md5 ( string strChange ) : string
strChange string
return string

ZendeskApi() public method

Constructor that takes 3 params.
public ZendeskApi ( IWebProxy proxy, string yourZendeskUrl, string user, string password ) : System
proxy IWebProxy
yourZendeskUrl string Will be formated to "https://yoursite.zendesk.com/api/v2"
user string
password string
return System

ZendeskApi() public method

Constructor that takes 2 params.
public ZendeskApi ( string yourZendeskUrl, string p_OauthToken ) : System
yourZendeskUrl string Will be formated to "https://yoursite.zendesk.com/api/v2"
p_OauthToken string
return System

ZendeskApi() public method

Constructor that takes 3 params.
public ZendeskApi ( string yourZendeskUrl, string user, string password ) : System
yourZendeskUrl string Will be formated to "https://yoursite.zendesk.com/api/v2"
user string Email adress of the user.
password string Password of the user.
return System

ZendeskApi() public method

Constructor that takes 4 params.
public ZendeskApi ( string yourZendeskUrl, string user, string apiToken, string locale ) : System
yourZendeskUrl string Will be formated to "https://yoursite.zendesk.com/api/v2"
user string Email adress of the user
apiToken string Used if specified instead of the password
locale string Locale to use for Help Center requests. Defaults to "en-us" if no value is provided.
return System

ZendeskApi() public method

Constructor that takes 6 params.
public ZendeskApi ( string yourZendeskUrl, string user, string password, string apiToken, string locale, string p_OAuthToken ) : System
yourZendeskUrl string Will be formated to "https://yoursite.zendesk.com/api/v2"
user string Email adress of the user
password string LEAVE BLANK IF USING TOKEN
apiToken string Used if specified instead of the password
locale string Locale to use for Help Center requests. Defaults to "en-us" if no value is provided.
p_OAuthToken string
return System