Module zoho.people

ballerinax/zoho.people Ballerina library

1.0.0

Overview

This is a generated connector for Zoho People OpenAPI specification.

Zoho People API provides the capability to integrate HR modules with third-party applications. With Zoho People API, you can extract employees' data and form data in XML or JSON format to develop new applications or integrate with your existing business applications.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Zoho People connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/zoho.people module into the Ballerina project.

Copy
import ballerinax/zoho.people;

Step 2 - Create a new connector instance

You can now make the connection configuration using the <ACCESS_TOKEN>.

Copy
people:ClientConfig clientConfig = {
    auth : {
        token: `<ACCESS_TOKEN>`
    }
};

people:Client zohoPeople = check new (clientConfig);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.

    Following is an example to get leave types of a specific employee.

    Copy
    public function main() {
        userId = <USER_ID>
        people:LeaveTypes|error leaveTypes = zohoPeople->getLeaveTypes(userId);
        if leaveTypes is error {
            log:printError(leaveTypes.toString());
        } else {
            log:printInfo(leaveTypes.toString());
        }
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/zoho.people;Copy

Metadata

Released date: over 2 years ago

Version: 1.0.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.0.2

GraalVM compatible: Yes


Pull count

Total: 1335

Current verison: 794


Weekly downloads


Source repository


Keywords

Human Resources/HRMS

Cost/Paid


Contributors

Other versions