CodeIgniter Forums
Youtube Api v3 Codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Youtube Api v3 Codeigniter (/showthread.php?tid=69283)



Youtube Api v3 Codeigniter - bgr06 - 10-31-2017

Hello,

How to do with codeigniter

   

Youtube api v3 + Codeigniter.

Sorry, i new developer and bad english


RE: Youtube Api v3 Codeigniter - jreklund - 10-31-2017

You can find some samples for PHP here.

If you are only going to get this information, I would just use CURL instead.
1. Java Javascript... Press More > CURL
2. Change "id" for to yours for an example
3. Press "Execute without OAuth"

You will need a Youtube API Key later on:
https://cloud.google.com/console
1. Use Google APIs
2. Enable API
3. YouTube Data API
4. Enable
5. Credentials
6. Create credentials
7. API key
8. Key restriction
9. HTTP referrers (web sites)
10. Enter your domain: domain.com/*

Here's some example code I wrote for fetching trailers. It will work pretty much the same.