We should first create a util module. The purpose to place functions here that do actions that would normally take multiple API requests. For example, creating a movie.
To create movie you must:
queueMovie
getMovieStatus until movie is done processing
downloadMovie
save to designated file.
Let's create a util module with a function called createMovie(QueueMovieInputParams)
We should first create a util module. The purpose to place functions here that do actions that would normally take multiple API requests. For example, creating a movie.
To create movie you must:
Let's create a util module with a function called
createMovie(QueueMovieInputParams)