Category : google-api-php-client

i have given Create Service Accounts, Delete Service Accounts, Service Account User, Service Account Admin permission to my project but still i am getting this error. please help Here is the link for the code that i use https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts/create https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-undelete-rest permission error screenshot Sourc..

Read more

I wanna call Google Calendar API’s freebusy.query endpoint by service account in server-side with php and google-api-php-client. First, I opened Google Cloud Platform project page. Then I created service account, downloaded credential JSON file, enabled Calendar API, and allowed delegated authority. Second, I opened Google Admin. Then I allowed scope:https://www.googleapis.com/auth/calendar for delegated authority. Third, I ..

Read more

I’m having trouble with the API, but I’m also brand new to playing around with the API, so I’m needing some help. From what I’m gathering, the $client->getAccessToken is not being set properly. Can someone please help me figure out why the error message keeps reading inside of the gradebook.php? Gradebook.php: <?php session_start(); require_once ‘oauth.php’; ..

Read more

Hello I am trying to get access token using Google api client PHP in CodeIgniter when I load this localhost:8080/google/callback i am getting following error Too few arguments to function GoogleClient::authenticate(), 0 passed in E:wampwwwmyprojectappControllersGoogle.php on line 41 and exactly 1 expected here is code public function callback(){ define(‘GOOGLE_CLIENT_ID’, ‘XXXX’]); define(‘GOOGLE_CLIENT_SECRET’, ‘XXXX’); // Create Client ..

Read more

I need to check if user subscribed to some channel. So i call Subscriptions: list method with channelId and forChannelId parameters. Hidding subscriptions option is disabled for channelId user (Subscriber). I can see forChannelID channel in his subscriptions section using browser. But Youtube API response is empty. Also if i just call it without forChannelId ..

Read more