Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

FreshdeskClient Constructors

Jean-Sebastien Carle edited this page Jul 24, 2019 · 5 revisions

FreshdeskClient(String, String, String)

Initializes a new instance of the FreshdeskClient class for the specified domain name and credentials.

public FreshdeskClient(string domainName, string username, string password)

Parameters

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.

Examples

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");
        }
    }
}

Remarks

ℹ️ 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.

Clone this wiki locally