This repository was archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
FreshdeskClient Constructors
Jean-Sebastien Carle edited this page Jul 24, 2019
·
5 revisions
Initializes a new instance of the FreshdeskClient class for the specified domain name and credentials.
public FreshdeskClient(string domainName, string username, string password)| Name | Type | Description |
|---|---|---|
| domainName | String | The specific Freshdesk domain name to connect with. |
| username | String | The username used to authenticate with Freshdesk. |
| password | String | The password used to authenticate with Freshdesk. |
The following code example demonstrates this constructor.
using Freshdesk;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
string freshdeskDomain = "yourcompany.freshdesk.com";
string apiKey = "yourapikey";
FreshdeskClient freshdesk = new FreshdeskClient(freshdeskDomain, apiKey, "X");
}
}
}ℹ️ Credentials can either be in the form of the username and password of an authorised Freshdesk Agent or simply the API key. If using the API key, the API key must be passed as the username and X as the password.