google-calendar-api

Google Calendar API - sendNotifications is not working

不想你离开。 提交于 2019-12-24 10:49:02
问题 I am trying to use Google Calendar API to create event and invite multiple attendees. foreach($email_invite_arr as $item){ if($item){ $attendee = new Google_Service_Calendar_EventAttendee(); $attendee->setEmail($item); $attendee_arr[]= $attendee; } } $event->setAttendees($attendee_arr); $optParams = Array( 'sendNotifications' => true, 'maxAttendees' => 10 ); $createdEvent = $service->events->insert('primary', $event, $optParams); Everything works fine. The event is getting created with all

keyInvalid Error when calling Google Calendar API

倾然丶 夕夏残阳落幕 提交于 2019-12-24 09:59:54
问题 I'm writing a Lambda function that queries Google Calendar events. Although I successfully created a credential (client ID, and client secret) on Google Developers Console, I cannot access the events. Error: { "error": { "errors": [{ "domain": "usageLimits", "reason": "keyInvalid", "message": "Bad Request" } ], "code": 400, "message": "Bad Request" } } My http request looks like this: https://www.googleapis.com/calendar/v3/calendars/MY_CLIENT_ID/events?key=MY_CLIENT_SECRET What went wrong?

Why Google Calendar API returns timeZone=UTC although it's incorrect?

巧了我就是萌 提交于 2019-12-24 08:31:37
问题 Most of our customers are American, but after connecting their google calendar with our service we read timeZone=UTC: https://www.googleapis.com/calendar/v3/users/me/calendarList?minAccessRole=owner&access_token=<ACCSES TOKEN> response: { "kind": "calendar#calendarList", "etag": "\"1407366566837000\"", "nextSyncToken": "00001407366566837000", "items": [ { "kind": "calendar#calendarListEntry", "etag": "\"1407184723757000\"", "id": "sampleemail@gmail.com", "summary": "sampleemail@gmail.com",

Adding calendar event to specific calendar

百般思念 提交于 2019-12-24 07:20:50
问题 At google accounts I have several calendars, managed manually, for instance: meeting plan, maintenance plan. This calendars I've created using one account and querying them but google api is successful. But now I want to use gdata api to manage calendars. I want to insert event in calendars which are not my default calendars. documentation says that a have to add event to url POST https://www.google.com/calendar/feeds/default/private/full And it works, but inserts in my primary calendar

Retrieve deleted calendar events?

馋奶兔 提交于 2019-12-24 05:55:17
问题 Is there a way to retrieve deleted calendar events in Google Apps Script? I'm trying to keep track of our rate of meeting cancellations. I can see deleted events in the calendar's Trash (folder?), but am unable to retrieve them using the CalendarApp's getEvents API. I've tried querying using: myCalndar.getEvents(some_days_past, now, {search: "in:Trash"}); as well as numerous variations of search strings and optional properties, but none return any results. Any ideas? For the record, I've been

How do I make the new Google calendar event text wrap around using CSS?

爱⌒轻易说出口 提交于 2019-12-24 05:07:21
问题 I can't read the full title of my Google Calendar events, because they're truncated to fit in the day box. And so a printout isn't as useful as it could be. There used to be a greasemonkey plugin that changed the CSS to fix this, but Google have redesigned the calendar, and now the titles overlap each other and can't be read properly. What CSS do I now need to add to the page to make the event titles wrap nicely? This is the existing code of the Greasemonkey plugin: function buildStyle() {

Share private Google calendar via api

限于喜欢 提交于 2019-12-24 04:26:15
问题 I am trying to access a calendar hosted on google via my node application however I am unable to query it via the given api due to my calendar needing authorisation. How would I go about disabling this/making the calendar accessible to my application? Here is my api query: https://www.googleapis.com/calendar/v3/calendars/heathwallace.com_gpupieshkuc85dd832m9gjrh9g@group.calendar.google.com And this is the response: { "error": { "errors": [ { "domain": "global", "reason": "required", "message"

Universal Windows Platform App with google calendar

我是研究僧i 提交于 2019-12-24 04:09:16
问题 Hey im trying to make an Universal Windows Platform App where google calendar is in it, but i cant figure out how to convert the code, i got the code to work on a WPF App. I am not the best at coding https://developers.google.com/google-apps/calendar/quickstart/dotnet this is the site i use as a guideline in the start if its to any help, any help? Code below: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using

Get All Google Calendars Shared Within A Domain

萝らか妹 提交于 2019-12-24 03:50:58
问题 I'm working on a script that grabs all calendars shared within a domain. I'm an admin on that domain and can grab all users within that domain, but I need help getting calendars that each user owns. It seems that any existing solution for this problem uses deprecated versions of the Google Calendar API. I've tried to modify the raw GET request: https://www.googleapis.com/calendar/v3/users/[username]/calendarList That didn't work. I'm guessing it's because it's a raw request that has no

Google Calendar PHP API Not Sending Invite Emails

隐身守侯 提交于 2019-12-24 03:29:27
问题 I have successfully integrated with Google Calendar using PHP with a Service Account. What I can do: Update the calendar event. Add attendees to the calendar event. What I can not do: Send invite emails when new attendees are added. Here is the entire code that I use to accomplish everything so far: putenv('GOOGLE_APPLICATION_CREDENTIALS=credentials.json'); $client = new Google_Client(); $client->useApplicationDefaultCredentials(); $client->setScopes('https://www.googleapis.com/auth/calendar'