Module zendesk

ballerinax/zendesk Ballerina library

2.0.0

Overview

Zendesk is a customer service software company that provides a cloud-based customer support platform. It is designed to offer a seamless and efficient customer service experience, enabling businesses to manage customer interactions across multiple channels, including email, chat, phone, and social media.

The Ballerina Zendesk Connector allows developers to interact with the Zendesk REST API V2, making it easier to integrate customer support features into Ballerina applications. This connector enables the automation of Zendesk Support operations such as ticket management, user and organization management, and more.

Setup guide

To use the Zendesk Connector in Ballerina, you must have a Zendesk account and an API token for authentication. Follow the steps below to set up the connector with your Zendesk account. If you don't have an account, you can create one by visiting Zendesk Sign Up page and completing the registration process.

Step 1: Log in to Zendesk

  1. Sign in to your Zendesk account.
  2. Navigate to the dashboard.

Step 2: Access admin center

  1. Click on the Settings icon in the sidebar.

  2. Click on Go to Admin Center.

    Zendesk Admin Center

Step 3: Create a new connection

  1. In the Admin Center, click on Apps and integrations.

  2. Click on Connections under the Connections section.

  3. Click on Create connection to create a new connection.

    Zendesk Connection Settings

Step 4: Configure connection settings

When creating a new connection, you will be prompted to provide the following details:

  • Connection name: A descriptive name for the connection.

  • Authentication type: Possible options are API key, Basic Auth, Bearer Token, and OAuth 2.0.

  • Allowed domain: The domain that the connection is allowed to access. You can use a wildcard to allow requests made to any subdomain by adding an asterisk (*) at the start.

    Zendesk Connection Configuration

Note: The rest of the fields (e.g. username, password, token) will appear based on the selected authentication type.

Quickstart

To begin using the Zendesk connector in your Ballerina application, you'll need to follow these steps:

Step 1: Import the connector

First, import the ballerinax/zendesk package into your Ballerina project.

Copy
import ballerinax/zendesk;

Step 2: Instantiate a new connector

Create a zendesk:ConnectionConfig object with your domain and API token, and initialize the connector.

Copy
zendesk:ConnectionConfig zendeskConfig = {
    auth: {
        username: "<username>",
        password: "<password>"
    }
};

zendesk:Client zendesk = check new (zendeskConfig, "https://<your-domain>.zendesk.com");

Step 3: Invoke the connector operation

Utilize the connector's operations to manage tickets, users, organizations, etc.

Create a ticket

Copy
zendesk:TicketCreateRequest ticket = {
    ticket: {
        subject: "Subject of the ticket",
        comment: {
            body: "Body of the ticket comment"
        }
    }
};

zendesk:TicketResponse createResponse = check zendesk->/api/v2/tickets.post(ticket);

List tickets

Copy
zendesk:TicketsResponse tickets = check zendesk->/api/v2/tickets;

Examples

The Zendesk connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:

  1. Multi channel support integration - Integrate Zendesk with multiple customer support channels to streamline ticket management.
  2. Customer satisfaction survey analysis - Analyze customer satisfaction survey responses to improve support services.

Import

import ballerinax/zendesk;Copy

Metadata

Released date: 20 days ago

Version: 2.0.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.6

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 1


Weekly downloads


Source repository


Keywords

zendesk

CRM

CSM

Support/Customer Support

Cost/Freemium


Contributors

Other versions

2.0.0