Module listen.notes

ballerinax/listen.notes Ballerina library

1.5.1

Overview

This is a generated connector for Listen Notes API v2.0 OpenAPI specification.

Simple & no-nonsense podcast search & directory API. Search all podcasts and episodes by people, places, or topics.

Prerequisites

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

Quickstart

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

Step 1: Import connector

First, import the ballerinax/listen.notes module into the Ballerina project.

Copy
import ballerinax/listen.notes;

Step 2: Create a new connector instance

Create a notes:ApiKeysConfig with the <API_KEY> obtained, and initialize the connector with it.

Copy
notes:ApiKeysConfig apiKeyConfig = {
    xListenapiKey: `<API_KEY>`
};

notes:Client baseClient = check new Client(apiKeyConfig);

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 to search using the connector.

    Copy
    public function main() {
        string q = "game of thrones";
    
        notes:SearchResponse|error response = baseClient->search(q);
        if (response is notes:SearchResponse) {
            log:printInfo(response.toString());
        } else {
            log:printError(response.message());
        }
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/listen.notes;Copy

Metadata

Released date: 12 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Video & Audio

Cost/Freemium


Contributors

Other versions