DEV Community

Alias
Alias

Posted on • Updated on

PHP - Google/YT - An OAuth issue

I was operating a site a few years back where I could use the YT API with just a key and specific API link to allow the end-user to hover over videos for a short-play/info etc. It seems now, OAuth is required but no matter how I try to configure it, it seems to get stuck on the search function and I can't for the life of me find the issue that lies within.

I have it set up with globals defined within the function to search, along with the urlencoded key, and akey. I am using the Google API to search results up to 50 verifying the key/akey in the search. It's then set up to display in an XML with predefined methods to organize the search results, to cache older search results of the same or create a new cache of the file, this runs using a time interval to refresh results every x minutes. Where could I be not looking that's the deterrent for providing me the search results?

The basic functionality would be


| | | |
| | | |->5 results per row
|| ||
| | | |
| | | |->5 results per column
|| ||

Any suggestions would be greatly appreciated, I've tried a few methods found through stack/google research but have not had any success.

Top comments (0)