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.
Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.
Resposta de Travis Bell
em 4 fevereiro 2017 às 10:10 PM
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
em 4 fevereiro 2017 às 11:01 PM
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
em 4 fevereiro 2017 às 11:12 PM
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.