google-calendar-api

Edit/Delete Google Calendar Events and get event Id

↘锁芯ラ 提交于 2021-02-07 02:53:46
问题 I am trying to edit and delete events in Google calendar using Calendar Provider. I have already Created event using Calendar Provider . Here is my code to create an event : Calendar beginTime = Calendar.getInstance(); beginTime.set(2014, 5, 19, 7, 30); Calendar endTime = Calendar.getInstance(); endTime.set(2014, 5, 19, 8, 30); Intent intent = new Intent(Intent.ACTION_INSERT) .setData(Events.CONTENT_URI) .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis()) .putExtra

Update recurring event after a date

这一生的挚爱 提交于 2021-02-05 11:15:51
问题 my name is Erick and I'm doing an integration with google calendar. I need to update the information (without changing the date) of a recurring event from a date other than the first, and I need the changes to be applied in the following schedules. Ex: Recurring scheduling 2020-07-20 through 2020-07-30 change the summary from the 23rd onwards call PUT https://www.googleapis.com/calendar/v3/calendars/{{id}}/events/{{event_id}} { "summary": "TESTE 123", "start": { "dateTime": "2020-07-23T19:00

Google Calendar API batch insert events with Apps Script

蹲街弑〆低调 提交于 2021-02-05 07:52:05
问题 Using Google Apps Script's UrlFetchApp, how can I use the Google Calendar v3 API to insert events in batches? Google lists this example batch request, but I don't understand how exactly to convert it. POST /batch/farm/v1 HTTP/1.1 Authorization: Bearer your_auth_token Host: www.googleapis.com Content-Type: multipart/mixed; boundary=batch_foobarbaz Content-Length: total_content_length --batch_foobarbaz Content-Type: application/http Content-ID: <item1:12930812@barnyard.example.com> GET /farm/v1

Google calendar watch for updates on events

限于喜欢 提交于 2021-02-05 06:58:26
问题 I want to listen programmatically when an event I created on the Google calendar is updated (like when someone accept/reject an invite) and I want to receive the relevant info regarding the event (type, confirmed/declined attendees, etc). I've tried using zapier and so far it does the job. Is there a native way to do that using Google API? I've also tried using Google calendar push notifications but the data I've received from the webhook isn't sufficient for my use case. Thanks! 回答1: You

Google calendar api “Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.”

安稳与你 提交于 2021-01-29 18:49:16
问题 I am creating a booking system with server to server auth with google calendar API. Sometimes when I create events with the API I get this : { error: { errors: [ { domain: "usageLimits", reason: "dailyLimitExceededUnreg", message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.", extendedHelp: "https://code.google.com/apis/console" } ], code: 403, message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." } } But otherwise the API

Google Calendar api authentication via POST request

牧云@^-^@ 提交于 2021-01-29 16:52:47
问题 I am trying to issue a POST request towards the google calendar api, but I fail to understand how to authenticate it. I took the following steps to try and use a service account to do so: I've enabled the the calendar api in the Google Cloud console I've created a new service account, enabled G Suite Domain-wide Delegation , and downloaded the provided key. I've added the service account email to the calendar to be able to make changes and create events. I've tried to create a POST request to

Google Apps Script Calendar Service: How to store and retrieve CalendarEvents using PropertiesService?

空扰寡人 提交于 2021-01-29 15:45:58
问题 I'm referring to this question. As this code var cal = CalendarApp.getCalendarById("Calendar Id"); var startTime = new Date(1850, 0, 1); var endTime = new Date(2100, 0, 1); var events = cal.getEvents(startTime, endTime); Logger.log(events); var sp = PropertiesService.getScriptProperties(); sp.setProperty("events", JSON.stringify(events)); events = JSON.parse(sp.getProperty("events")); Logger.log(events); returns: Info [CalendarEvent, CalendarEvent, CalendarEvent, CalendarEvent, CalendarEvent]

Google calender API getting started

拥有回忆 提交于 2021-01-29 15:00:39
问题 I'm trying to get familiar with the google calendar api. In the getting started guide they have this code example: from __future__ import print_function import datetime import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis.com/auth/calendar.readonly'] def main(): """Shows basic

Google Calendar Api v3 (java-client): setRecurrence: EXDATE

爷,独闯天下 提交于 2021-01-29 13:41:52
问题 Does anyone know how to set EXDATE for an event in Google Calendar API v3 (Java client)? Using setRecurrence(List recurrence): RRULE works perfectly, but EXRULE, RDATE and EXDATE don't seem to work (same with getRecurrence(List recurrence): only RRULE is retrieved). import com.google.api.services.calendar.model.Event; Event event = new Event(); // ... List RecurrenceList = new ArrayList<String>(); RecurrenceList.add("RRULE:FREQ=WEEKLY;BYDAY=FR"); //this works RecurrenceList.add("EXDATE

Google Calendar with G Suite account insert get 403

别等时光非礼了梦想. 提交于 2021-01-29 13:01:08
问题 I need to use G Suite account to insert a calendar include a hangout meet but I can't even insert the event, I always get the 403 response 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "calendar", "message" : "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.", "reason" : "forbiddenForServiceAccounts" } ], "message" : "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority." } I use the GCP p12 file and the service