$item = array();
$item['id'] = $video['id'];
$item['snippet'] = $video['snippet'];
$item['contentDetails'] = $video['contentDetails'];
$return_msg['items'][$item['id']] = $item;
Also, one of the reasons I put everything into an ‘items’ array is because the $response object doesn’t populate the JSON response with anything more than the following fields:
I have to explicitly loop through the items, rather than have a section called ‘items’ in the response object.
Viewing 1 post (of 1 total)
The forum ‘Back End’ is closed to new topics and replies.