google-calendar-api

Parse Error during insert event in google calendar api

旧街凉风 提交于 2019-12-25 12:09:32
问题 I've a json object below and passed it as urlParameter { "end": { "dateTime": "2017-10-09T13:30:00", "timeZone": "America/Denver" }, "start": { "dateTime": "2017-10-09T12:00:00", "timeZone": "America/Denver" }, "description": "Added through API", "summary": "Lecture on Global Warming", "location": "Denver" } I've also set the Content-Type as application/json . But I get the error as { "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "Parse Error" } ], "code":

Unable to refresh access token : response is “unauthorized_client”

我的未来我决定 提交于 2019-12-25 07:48:41
问题 First of all, I've read the other questions with similar subjects that I've seen on SO. The solutions there tend to be issues around using credentials copied from elsewhere, so I don't think they apply. I'm working on a PHP web app that syncs data to a Google Calendar. The OAuth flow works perfectly to start with - I obtain a token, exchange it for an access token, and can call APIs successfully. I store the access token, which includes the refresh token as a subkey, for future reference.

Google Calendar API service token only has reader accessRole

血红的双手。 提交于 2019-12-25 07:08:11
问题 I'm accessing the Google Calendar API and authenticating with a service token to a calendar owned by an apps-for-domains account. When I call calendar.events.list, I get the response: { kind: 'calendar#events', etag: [snip], summary: [snip], description: [snip], updated: '2014-11-16T12:33:06.434Z', timeZone: 'Europe/London', accessRole: 'reader', <------ this is the problem defaultReminders: [], nextSyncToken: [snip], items: [] } I would like to be able to write to the calendar. The token's

Google Calendar API service token only has reader accessRole

随声附和 提交于 2019-12-25 07:07:02
问题 I'm accessing the Google Calendar API and authenticating with a service token to a calendar owned by an apps-for-domains account. When I call calendar.events.list, I get the response: { kind: 'calendar#events', etag: [snip], summary: [snip], description: [snip], updated: '2014-11-16T12:33:06.434Z', timeZone: 'Europe/London', accessRole: 'reader', <------ this is the problem defaultReminders: [], nextSyncToken: [snip], items: [] } I would like to be able to write to the calendar. The token's

Override existing google calendar event when new event is created via script

爱⌒轻易说出口 提交于 2019-12-25 05:25:55
问题 I am using a Google Form to schedule appointments based on open events on my Google Calendar. I've sectioned off time slots on the calendar and if the title of the event is "Open", then the time slot can be used to create an event. I would next like to know if it's possible to override and delete the existing open event with the new appointment that is created. Here is the code I am using to push events to my calendar as they are created in the form: var calendarID = ""; var startDtID = 5;

Adding a calendar to my website

╄→尐↘猪︶ㄣ 提交于 2019-12-25 04:56:26
问题 I am making a website from scratch that will let users create accounts. I plan on having 4 type of accounts(Customer,Employee/Owner,Rep/Salesman,and Dealer). Out of those 4 type of accounts, the owner and the rep are the only ones who will see a calendar once they log-in. The owner should be able to modify events from the rep's calendar, and the rep can obviously modify his/her own calendar as well. I am not planning on making a calendar from scratch, but rather to get one that meet my needs

Google Calendar API Push notifications issue

旧街凉风 提交于 2019-12-25 04:55:10
问题 I am trying to implement push notifications feature in Google calendar api. I have also whitelisted my domain https://www.skygazr.com in webmaster tools and cloud console. Now while am trying to create a working copy of Watch request it is giving me a webhookUrlUnauthorized error. Please check the below request and response. OST /calendar/v3/calendars/info%40bacnn.com/events/watch HTTP/1.1 Host: www.googleapis.com Content-length: 111 Content-type: application/json Authorization: Bearer ya29.1

.getStartTime() not a function?

拜拜、爱过 提交于 2019-12-25 04:39:19
问题 how do i get .getStartTime to work? i'm using the CalendarEvent class, and .getStartTime is listed under this class (https://developers.google.com/apps-script/reference/calendar/calendar-event#getStartTime()) but when i try to run the following code, i get TypeError: Cannot find function getStartTime in object CalendarEvent. function test() { var TA =CalendarApp.getCalendarsByName("CalendarName")[0].getEvents(startDt, endDt); var starting = TA.getStartTime(); Logger.log(starting); return; };

Google OAuth getting refresh token using javascript generated OAuth access_token

别来无恙 提交于 2019-12-25 04:37:09
问题 I'm developing application where I need to perform server side requests to google API on user behalf. In basic terms my application does this: Using gapi javascript library requests authentication and gets access_token the problem with that token that its short lived and there is no way I can extend it as far as I can tell using javascript google apis. Now my question is having that short lived token how can I use server side SDK (in my case c#) or direct WebClient connection to request a

Import Google or iCal calendar data into a google spreadsheet

左心房为你撑大大i 提交于 2019-12-25 04:23:15
问题 I am trying to keep a record of google calendar entries in a google spreadsheet to further process the data. I have the following code, which I borrowed from other sources: function importEvents(){ var startOfDay = new Date(); startOfDay.setUTCHours(0); startOfDay.setMinutes(0); startOfDay.setSeconds(0); startOfDay.setMilliseconds(0); var endOfDay = new Date(startOfDay.getTime() + 24 * 60 * 60 * 1000); var Calendar = CalendarApp.getCalendarById("[calendarIDhere]"); var events = Calendar