ballerinax/worldtimeapi Ballerina library

1.5.2

Overview

The WorldTimeAPI v0.6.1 connector(http://worldtimeapi.org/) OpenAPI Specification.

WorldTime API is a simple "microservice" which returns the local-time for a given timezone in both unixtime and ISO8601 format. The worldTimeAPI connector supports to get the current time based on a request with a timezone and additional information including whether that timezone is currently in Daylight Savings Time, when DST starts and ends, the UTC offset, etc.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Seamless integration with REST API endpoints
  • Support for standard HTTP methods and JSON responses

Quickstart

  • Listing all time zone as json

Step 1 - Import connector

Copy
ballerinax/worldtimeapi

Step 2 - Create a new connector instance

Copy
worldtimeapi:Client baseClient = check new Client();

Step 3 - Invoke connector operation

  1. Invoke connector operations using the client
Copy
worldtimeapi:ListJsonResponse output = check baseClient->listTimezones();
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/worldtimeapi;Copy

Other versions

See more...

Metadata

Released date: about 20 hours ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 41

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/WorldTimeAPI

Area/Cloud & Infrastructure

IT Operations/Cloud Services

Cost/Free


Contributors