ballerinax/nytimes.moviereviews Ballerina library
This is a generated connector from New York Times Movie Review API v2.0.0 OpenAPI specification. With the New York Times Movie Reviews API you can search for movie reviews. The Movie Reviews API provides services for searching New York Times movie reviews by keyword and opening date and filter by Critics' Picks.
Before using this connector in your Ballerina application, complete the following:
- Create NYTimes developer account
- Obtain tokens
To use the New York Times Movie Reviews connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
First, import the
ballerinax/nytimes.moviereviews module into the Ballerina project.
Step 2: Create a new connector instance
moviereviews:ApiKeysConfig with the API key obtained, and initialize the connector with it.
Step 3: Invoke connector operation
Now you can use the operations available within the connector. Note that they are in the form of remote operations.
Following is an example on how to get movie critics using the connector. You can either specify the reviewer name or use "all", "full-time", or "part-time".
Get movie critics
Following is an example on how to search for movie reviews using the connector. Supports filtering by Critics' Pick.
Search for movie reviews
Following is an example on how to get movie reviews using the connector. You can filter to only return Critics' Picks. Supports ordering results by-publication-date or by-opening-date. Use offset to paginate thru results, 20 at a time. Here we specify
allto retrieve all reviews, including NYT Critics' Picks.
Get movie reviews
bal runcommand to compile and run the Ballerina program.
Released date: 10 months ago
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Current verison: 0