Using google api in Yii

I’m trying to include and use the google api library in Yii, I read some tutorials on components, but I don’t understand how to get the whole Google folder to work. I need only Client.php and Service/YouTube.php to work with. Any help will be appreciated.

It’s the same as in PHP without Yii.

I assume you’ve been working with Yii 1.1. If so, try to put your libraries into vendor directory " protected/vendors". The remaining things you will have to do are described quite well here

Try and be patient, it’s the key.