ballerinax/googleapis.people

2.3.0

Overview

Ballerina connector for Google People API connects the Google People API via Ballerina language with ease. It provides capability to perform operations related to contacts and contact groups in Google Contacts.

This module supports Google People API v1.0.

Prerequisites

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

Quickstart

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

Step 1: Import connector

Import the ballerinax/googleapis.people module into the Ballerina project.

Copy

Step 2: Create a new connector instance

Enter the credentials in the Google People API client configuration, and create the Google People API client by passing the configuration.

Copy

Step 3: Invoke connector operation

  1. Create a contact via the createContact method by passing a Person record and FieldMask[] as parameters.

    Copy
  2. Use bal run command to compile and run the Ballerina program.

You can find more samples here

Other versions

See more...