Hi @jerauf You can call the /credits method to get all of that information. I would also suggest taking a read through the 'append_to_response' documentation to learn how you can make that call in a single request.
Thanks for the response, Travis. What I don't understand about this is how it will allow me to manipulate the data that's returned. With 'append_to_reponse', you're only appending specific requests, not the data.
I'm not sure if I understand what you mean. By using 'append_to_response' the extra requests gets returned in the same single response you are making. It appends the data to a field with the same name as the appended requests. So in the example '/credits', now there is a credits field.
I've truncated the response here obviously, because it's too long but you can see here, the credits field gets added and becomes part of the response.
So with the credits returned back, just iterate over the array selecting the first 10 items from the cast array, and then iterate over the crew array grabbing whatever job(s) you want to display.
Non podes atopar unha película ou serie? Inicia sesión para creala.
Resposta de Travis Bell
no 4 de febreiro do 2017 ás 10:10PM
Hi @jerauf You can call the /credits method to get all of that information. I would also suggest taking a read through the 'append_to_response' documentation to learn how you can make that call in a single request.
Cheers.
Resposta de jerauf
no 4 de febreiro do 2017 ás 11:01PM
Thanks for the response, Travis. What I don't understand about this is how it will allow me to manipulate the data that's returned. With 'append_to_reponse', you're only appending specific requests, not the data.
Resposta de Travis Bell
no 4 de febreiro do 2017 ás 11:12PM
I'm not sure if I understand what you mean. By using 'append_to_response' the extra requests gets returned in the same single response you are making. It appends the data to a field with the same name as the appended requests. So in the example '/credits', now there is a
credits
field.I've truncated the response here obviously, because it's too long but you can see here, the
credits
field gets added and becomes part of the response.So with the credits returned back, just iterate over the array selecting the first 10 items from the cast array, and then iterate over the crew array grabbing whatever job(s) you want to display.