Monday, July 30, 2012

PHP: Phycocauth

Phycocauth is a sample project that combines the following: PHP, YouTube, OAuth2, CodeIgniter, the CodeIgniter Youtube API Library, and the Google APIs Client Library for PHP.

I'm releasing this proof of concept to show that it's possible to integrate the CodeIgniter Youtube API Library with the Google APIs Client Library for PHP. Once version 3 of the YouTube API is ready, the CodeIgniter Youtube API Library will no longer be necessary. All you'll need is the Google APIs Client Library for PHP which will be able to handle OAuth2 as well as the YouTube API.

See application/controllers/example.php for the most interesting piece code.

4 comments:

Leon Atkinson said...

Do you think you could nudge the right person to address the following design flaw in the library?

http://code.google.com/p/google-api-php-client/issues/detail?id=51

I'd like to use the library but it won't integrate with my client's existing code. Also, forking the code and fixing the names will be too costly in the long run.

Shannon Behrens said...

I sent email to one of the engineers.

Leon Atkinson said...

Thanks, dude. I'm sorry you have code in PHP again, even if you were a damn fine PHP engineer. ;)

Shannon Behrens said...

You're too sweet :) Check that issue again; there's been some progress :)