Module eloqua

ballerinax/eloqua Ballerina library

1.3.2

Overview

The Oracle Eloqua connector(https://docs.oracle.com/en/cloud/saas/marketing/eloqua-user/index.htm) 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.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

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

Other versions

Metadata

Released date: 3 days ago

Version: 1.3.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 30

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/Oracle

Area/Marketing & Social Media

Marketing/Marketing Automation

Cost/Paid


Contributors