ballerinax/wordnik Ballerina library

1.5.1

Overview

This is a generated connector for Wordnik API v4.0 OpenAPI specification. Wordnik is the worlds biggest online English dictionary, by number of words.

Prerequisites

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

Quickstart

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

Step 1: Import connector

Import the ballerinax/wordnik module into the Ballerina project.

Copy
import ballerinax/wordnik;

Step 2: Create a new connector instance

You can now enter the credentials in the Wordnik client configuration and create Wordnik client by passing the configuration:

Copy
wordnik:ApiKeysConfig config = {
    apiKey: "<API_KEY>"
};

wordnik:Client baseClient = check new Client(config);

Step 3: Invoke connector operation

  1. You can get a random word as follows with getRandomWord method.
    Copy
    wordnik:WordObject randomWord = check baseClient->getRandomWord();
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/wordnik;Copy

Metadata

Released date: 10 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 

Current verison: 0


Weekly downloads


Source repository


Keywords

Education/Dictionary
Cost/Freemium

Contributors

Other versions

See more...