Menu

Search for videos in a YouTube channel using youtube API with php

Once you create a project in google developer console and grant nessary access to that project you can use the Clinet ID, email address (not your email address – this is a email address that get created associated with project) and .p12 file (you can download this file from google developer console and upload to a private location in your web server).

Download the Google PHP client library from GitHub. and include it in your script.

PHP code is like below, define the global variable

Accessing the google service.

 

Leave a comment