javascript
ErnMovieListDemoApi - JavaScript client for javascript
Top Rated Movies
This SDK is automatically generated by Electrode Native API generator.
It uses Swagger to generate bridge code for Swift, Android and React Native.
- API version: 1.0.0
- Package version: 1.0.2
Installation
npm
To publish the library as a npm,
please follow the procedure in "Publishing npm packages".
Then install it via:
npm install javascript --save
Git
If the library is hosted at a Git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
Getting Started
Please follow the installation instruction and execute the following JS code:
import { ErnMovieListDemoApi } from 'javascript';
const api = new ErnMovieListDemoApi.MoviesApi()
api.getMovieDetail(movieId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to https://api.movies.com/v1
Class | Method | request type | Description |
---|
ErnMovieListDemoApi.MoviesApi | getMovieDetail | request /movieDetails | MovieDetails |
ErnMovieListDemoApi.MoviesApi | getTopRatedMovies | request /movies | List<Movie> |
Documentation for Models
Documentation for Authorization
All endpoints do not require authorization.