google-api-php-client

Sending email notifications for Events via Google Calendar API

北城余情 提交于 2019-12-19 17:05:30
问题 I'm using the calendar.events.insert API to add an Event to my Calendar via the PHP client. The event is being inserted correctly along with appropriate values as set by the API. The same however is not able to trigger an email invite to the attendees. I looked around to find that the request needs to set the param sendNotifications as true . The same doesn't seem to help either. Here is a sample code: var request = gapi.client.calendar.events.insert({ "calendarId" : calendarData.id,

Receiving Google Drive Push Notifications

梦想与她 提交于 2019-12-19 11:20:19
问题 I have been able to establish a channel to receive push notifications from Google Drive by using the method described here Not receiving webhook notification from drive, why?. I am receiving notifications and everything is working fine. My problem is that when I receive the push notifications, I am only getting this information: Content-Length: 0 Accept: */* Accept-Encoding: gzip,deflate,br Connection: Keep-alive Host: www.domain.com User-Agent: APIs-Google; (+https://developers.google.com

Gmail API PHP Client Library - How do you send large attachments using the PHP client library?

删除回忆录丶 提交于 2019-12-19 10:25:11
问题 I'm using Google's PHP client library to send calls to Gmail's API. Using those resources, I can send messages with attachments using code like this: public function send_message(Google_Service_Gmail $gmail, $raw_message) { Log::info('Gmail API request \'users_messages->send\''); $postBody = new Google_Service_Gmail_Message(); $postBody->setRaw(Str::base64_encode_url($raw_message)); return $gmail->users_messages->send('me', $postBody, ['uploadType' => 'multipart']); } But I can't for the life

Google calendar API- Invitation email doesn't send to attendees when create event

天大地大妈咪最大 提交于 2019-12-19 10:17:33
问题 I want to add event to google calendar using google api. But after event created, invitation email doesn't send to attendees email list. Here is my code: <?php require_once '../../src/Google_Client.php'; require_once '../../src/contrib/Google_CalendarService.php'; session_start(); $client = new Google_Client(); $client->setApplicationName("Google Calendar PHP Starter Application"); // Visit https://code.google.com/apis/console?api=calendar to generate your // client id, client secret, and to

How to upload LARGE files on YouTube [closed]

℡╲_俬逩灬. 提交于 2019-12-19 03:58:49
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I have tried two methods to upload large files on YouTube but none of them works, each has its own issues, my aim is to find a correct answer to upload large files. First Method: It chunks the large files into different parts, and rather than sending them separately and upload them at once it

installing Google Client Library for Google Analtics PHP

馋奶兔 提交于 2019-12-19 03:36:14
问题 first of all I am new to this topic, so I hope my question is not too stupid. I want my website to have PHP access to Google Analytics metrics. I followed every step of this description from google. Unfortunately when I upload everything on my server and try to run the test-site, I always get the following error-message: Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https:/

yii2, google outh2 and scope

本小妞迷上赌 提交于 2019-12-19 02:15:32
问题 I am using Yii2, GoogleOAuth and yii2-user extension. I want to receive user google circles and set scope to my config: 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\GoogleOAuth', 'clientId' => '758709912345-p4qp4lqihit5un1u6qb75msqp5m5j6d8.apps.googleusercontent.com', 'clientSecret' => 'ZygOIi1-0asfktUQ1pKOFOo', 'scope' => 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo

How can I set the refresh_token when working with the google api?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 18:07:08
问题 I'm working off an example trying to learn how to use the google api to change events on a calendar. The server is the user which will update the calendar based off of information in a database. No user interaction is actually required. The problem is I am having issues getting/using refresh tokens. I click the "Connect Me" link that gets added to the page and it gives me an error: Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message

401 Unauthorized access when posting Google+ Moments with PHP Client

南楼画角 提交于 2019-12-18 09:52:40
问题 I'm trying to post a moment in google+ using the API, creating a simple example, but I get a 401 error. I'm following Silvano Luciani steps from https://plus.google.com/+SilvanoLuciani/posts/2kMX9Dzaf8V, and in order to post a moment, I've: Downloaded the last library, 0.6.1 from here: https://code.google.com/p/google-api-php-client/downloads/list Downloaded example from Silvano Luciani: https://gist.github.com/silvolu/5054214 Configured the example file with all the data from my G+ App This

Youtube Analytics API PHP Invalid query. Query did not conform to the expectations

浪子不回头ぞ 提交于 2019-12-18 07:20:59
问题 I'm trying to make some analytics query from server to server. I'm using laravel with https://github.com/google/google-api-php-client library. This is the code I'm using: $client = new Google_Client(); $key = file_get_contents(storage_path('key.p12')); $cred = new Google_Auth_AssertionCredentials( '***@developer.gserviceaccount.com', array('https://www.googleapis.com/auth/youtube.readonly', 'https://www.googleapis.com/auth/yt-analytics.readonly'), $key); $client->setAssertionCredentials($cred