I am getting data from /movie/movie_id/videos, it returns a bunch of data Now i want to get a youtube url Is it possible?
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de Travis Bell
pe data de 7 decembrie 2016 la ora 2:20 PM
The videos call returns an array of video that have been added to the media item. If you take an example response:
You can iterate over the results array and build the YouTube URL by using the
key
field. An example of the first item in the response above has the key ofqvCogW-N-HE
so you can then build a standard YouTube URL: