youtube video list in json format

youtube video list in json format

I have created a function in PHP for fetching youtube video list of my channel in JSON format but m getting blank array :-... Please help me out heres my code public function channels_list method _SERVERREQUEST_METHOD; ifmethod GET json_output400,arraystatus 400,message Bad request.; else data array; json_linkhttps:www.googleapis.comyoutubev3searchkeyMY API KEYchannelIdMY CHANNEL IDpartsnippet,idorderdatemaxResults10; json file_get_contentsthis-json_link; obj json_decodejson, true, 512, JSON_BIGINT_AS_STRING; foreachobjitems as post jsondataid issetpostidvideoId postidvideoId : ; jsondatapublished_at issetpostsnippetpublishedAt postsnippetpublishedAt : ; jsondatatitle issetpostsnippettitle postsnippettitle : ; jsondatadescription issetpostsnippetdescription postsnippetdescription : ; jsondatathumbnail https:i.ytimg.comviidmaxresdefault.jpg; array_pushdata, jsondata; json_output200, arraylistdata,1;

Комментарии

Популярные сообщения из этого блога

Как преобразовать вертикальную запись в горизонтальную?

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

How to delete a folder in remote Windows from Linux