Skip to content

The Ballerina Zendesk Connector facilitates direct integration and automation between Ballerina applications and the Zendesk platform. This connector is designed for developers requiring efficient integration solutions to extend customer support functionalities within Ballerina applications, minimizing complexity in API communication.

License

Notifications You must be signed in to change notification settings

ballerina-platform/module-ballerinax-zendesk

Repository files navigation

Ballerina Zendesk connector

Build Trivy GraalVM Check GitHub Last Commit GitHub Issues

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.

import ballerinax/zendesk;

Step 2: Instantiate a new connector

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

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

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

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.

Issues and projects

The Issues and Projects tabs are disabled for this repository as this is part of the Ballerina library. To report bugs, request new features, start new discussions, view project boards, etc., visit the Ballerina library parent repository.

This repository only contains the source code for the package.

Build from the source

Prerequisites

  1. Download and install Java SE Development Kit (JDK) version 17. You can download it from either of the following sources:

    Note: After installation, remember to set the JAVA_HOME environment variable to the directory where JDK was installed.

  2. Download and install Ballerina Swan Lake.

  3. Download and install Docker.

    Note: Ensure that the Docker daemon is running before executing any tests.

Build options

Execute the commands below to build from the source.

  1. To build the package:

    ./gradlew clean build
  2. To run the tests:

    ./gradlew clean test
  3. To build the without the tests:

    ./gradlew clean build -x test
  4. To run tests against different environment:

    ./gradlew clean test -Pgroups=<Comma separated groups/test cases>
  5. To debug package with a remote debugger:

    ./gradlew clean build -Pdebug=<port>
  6. To debug with the Ballerina language:

    ./gradlew clean build -PbalJavaDebug=<port>
  7. Publish the generated artifacts to the local Ballerina Central repository:

    ./gradlew clean build -PpublishToLocalCentral=true
  8. Publish the generated artifacts to the Ballerina Central repository:

    ./gradlew clean build -PpublishToCentral=true

Contribute to Ballerina

As an open-source project, Ballerina welcomes contributions from the community.

For more information, go to the contribution guidelines.

Code of conduct

All the contributors are encouraged to read the Ballerina Code of Conduct.

Useful links

About

The Ballerina Zendesk Connector facilitates direct integration and automation between Ballerina applications and the Zendesk platform. This connector is designed for developers requiring efficient integration solutions to extend customer support functionalities within Ballerina applications, minimizing complexity in API communication.

Topics

Resources

License

Stars

Watchers

Forks

Packages