Ballerina Central will undergo scheduled maintenance on Wednesday, August 06, from 00:30 AM to 01:30 AM UTC. During this time, Ballerina Central login and sign up will be temporarily disabled. We appreciate your patience as we work to improve your experience. For more information, reach out to contact@ballerina.io
 

Module launchdarkly

ballerinax/launchdarkly Ballerina library

1.5.1

Overview

This is a generated connector for LaunchDarkly API v2.0 OpenAPI specification.
LaunchDarkly is a feature management platform enables teams to deploy code at any time, even if a feature isn't ready to be released to all users.

Prerequisites

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

  1. Create an LaunchDarkly account.
  2. Obtain tokens - Follow this guide.

Quickstart

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

Step 1: Import connector

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

Copy
import ballerinax/launchdarkly;

Step 2: Create a new connector instance

You can initialize the client as follows. You can now provide the API key obtained from the LaunchDarkly in the configuration.

Copy
launchdarkly:ApiKeysConfig apiKeyConfig = {
    authorization: "<API_KEY>"
}

launchdarkly:Client baseClient = check new Client(apiKeyConfig, serviceUrl = ""https://app.launchdarkly.com/api/v2"");

Step 3: Invoke connector operation

  1. You can find all of the resource categories supported.
    Copy
    launchdarkly:Links links = check baseClient->getRoot();
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/launchdarkly;Copy

Other versions

Metadata

Released date: about 2 years ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 5

Current verison: 5


Weekly downloads


Source repository


Keywords

Productivity/Project Management

Cost/Freemium


Contributors