ballerinax/opendesign Ballerina library

1.4.0

Overview

This is a generated connector for Open Design REST API v0.3.4 OpenAPI specification.

Open Design read and display data from designs using code. Unlock the power of programmatic design.

Prerequisites

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

Quickstart

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

Step 1: Import connector

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

Copy
import ballerinax/opendesign;

Step 2: Create a new connector instance

Create a opendesign:ClientConfig with the <JWT_TOKEN> obtained, and initialize the connector with it.

Copy
opendesign:ClientConfig clientConfig = {
    authConfig : {
        token: <JWT_TOKEN>
    }
};

opendesign:Client baseClient = check new Client(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 test if your token is valid using the connector.

    Copy
    public function main() {
        opendesign:InlineResponse200|error response = baseClient->checkToken();
        if (response is opendesign:InlineResponse200) {
            log:printInfo(response.toString());
        } else {
            log:printError(response.message());
        }
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/opendesign;Copy

Metadata

Released date: about 2 years ago

Version: 1.4.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.2.1

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Images & Design

Cost/Freemium


Contributors

Other versions

See more...