ballerinax/wordnik Ballerina library

1.5.2

Overview

The Wordnik API v4.0 connector(https://developer.wordnik.com/docs) OpenAPI specification. Wordnik is the worlds biggest online English dictionary, by number of words.

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 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

Other versions

See more...

Metadata

Released date: 3 days ago

Version: 1.5.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/Wordnik

Area/Productivity & Collaboration

Education/Dictionary

Cost/Freemium


Contributors