ballerinax/themoviedb Ballerina library

1.5.1

Overview

This is a generated connector for The Movie Database (TMDB) API v3 OpenAPI specification.

The Movie Database (TMDB) API provide data about movies and tv shows around the world.

Prerequisites

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

  • Create TMDB Account
  • Obtaining tokens
    1. Log into TMDB Account
    2. Click the Settings
    3. Click the API tab in the left sidebar
    4. Click Create or click here on the API page

Quickstart

Step 1: Import connector

Import the ballerinax/themoviedb module into the Ballerina project.

Copy
import ballerinax/themoviedb;

Step 2: Create a new connector instance

Copy
themoviedb:ApiKeysConfig config = {
        apiKey : "<your appid>"
}

themoviedb:Client myclient = check new themoviedb:Client(config);

Step 3: Invoke connector operation

  1. You can get list of upcoming movies as follows with getUpcomingMovies method. Successful creation returns the created GetUpcomingMoviesResponse and the error cases returns an error object.
    Copy
    themoviedb:GetUpcomingMoviesResponse result = check myclient->getUpcomingMovies();
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/themoviedb;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: 288


Weekly downloads


Source repository


Keywords

Content & Files/Video & Audio
Cost/Free

Contributors

Other versions

See more...