Module eloqua

ballerinax/eloqua Ballerina library

1.3.1

Overview

This is a generated connector for Oracle Eloqua OpenAPI specification.

The Oracle Eloqua Marketing Cloud Service REST APIs enable you to extend the functionality of the product, build Apps, and perform high volume data transfers.

Prerequisites

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

Quickstart

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

Step 1: Import connector

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

Copy
import ballerinax/eloqua;

Step 2: Create a new connector instance

Create a eloqua:ClientConfig with the BEARER_TOKEN obtained, and initialize the connector with it.

Copy
eloqua:ClientConfig clientConfig = {
    auth: {
        token: <BEARER_TOKEN>
    }
};
eloqua:Client baseClient = 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 on how to retrieve a list of emails.

    Retrieve a list of emails.

    Copy
    public function main() returns error? {
        eloqua:QueryResultEmailRest20 response = check baseClient->searchListOfEmails();
        log:printInfo(response.toString());
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/eloqua;Copy

Metadata

Released date: about 1 year ago

Version: 1.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

Marketing/Marketing Automation

Cost/Paid


Contributors

Other versions