Module sakari

ballerinax/sakari Ballerina library

1.5.0

Overview

This is a generated connector from Sakari OpenAPI Specification.

Sakari provides an advanced platform to drive large scale customized SMS communication. To find out more about our product offering, please visit https://sakari.io.

This module supports Sakari REST API v1.0.1.

Prerequisites

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

Quickstart

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

Step 1: Import connector

First, import the ballerinax/sakari module into the Ballerina project.

Copy
import ballerinax/sakari;

Step 2: Create a new connector instance

You can now make the connection configuration using the obtained credentials.

Copy
sakari:ClientConfig configuration = {
    auth: {
        clientId: <>,
        clientSecret: <>,
        tokenUrl: "https://api.sakari.io/oauth2/token"   
    }
};

sakari:Client sakariClient = check new Client(configuration);

Step 3: Invoke the operation

  1. Now you can use the operations available within the connector. Following code demonstrates how to fetch all Sakari contacts.
Copy
public function main() returns error? {
    string accountId = <ACCOUNT_ID>;
    sakari:ContactsResponse contactsResponse = check sakariClient->fetchAllContacts(accountId);
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/sakari;Copy

Metadata

Released date: over 1 year ago

Version: 1.5.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 0


Weekly downloads


Source repository


Keywords

Communication/Call & SMS

Cost/Paid


Contributors

Other versions

See more...