ballerinax/worldbank Ballerina library

1.5.1

Overview

This is a generated connector from World Bank API v2 OpenAPI Specification.

The World Bank Indicators API provides access to nearly 16,000 time series indicators. Most of these indicators are available online through tools such as Databank and the Open Data website. The API provides programmatic access to this same data. Many data series date back over 50 years, and can be used to create interesting applications.

Quickstart

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

Step 1: Import connector

Copy
import ballerinax/worldbank

Step 2: Create a new connector instance

Copy
worldbank:Client worldbankClient = check new ();

Step 3: Invoke connector operation

  1. Get current population data by country.
Copy
public function main() {
    worldbank:CountryPopulation[] populationDetails = check worldbankClient->getPopulationByCountry(country_code="LKA" ,date="2000");
    int population = <int>populationDetails[0]?.value;
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/worldbank;Copy

Metadata

Released date: over 1 year ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 57296

Current verison: 24617


Weekly downloads


Source repository


Keywords

Business Intelligence/Analytics

Cost/Free


Contributors

Other versions

See more...