TopHattedCoder
Apparently, you have to make 2 API calls to obtain the movie trailers from TheMovieDB, with seperate steps for searching and getting the trailers. Both require an API key to be fed to them. Anyone know how this could be worked around? TheMovieDB API
posted by TopHattedCoder Community Leader4 years and 8 months ago Link

Jag
@tophattedcoder There are some instant answers that use two (even more!) API calls. Take a look at the Dictionary Spice.


Trailers.pm (first call sends JSON to browser) -> browser (front-end uses $.getJSON or $.getScript to fetch the data from the other endpoint) -> TrailersVideo.pm (return the second JSON result) -> browser (now we call Spice.render(...))


Grep for $.getScript for examples in the repository. Tell me if you need any help with that!
posted by Jag Staff4 years and 8 months ago Link
TopHattedCoder
@Jag Thanks! I'll have a try.
posted by TopHattedCoder Community Leader4 years and 7 months ago Link
Jag
Awesome!
posted by Jag Staff4 years and 7 months ago Link