google-calendar-api

How to protect Google API Key in an open-source (Github + Heroku) application

ぃ、小莉子 提交于 2021-02-09 09:15:31
问题 I'm creating an application I wish to open-source in the coming weeks. The source code is on Github and Heroku autodeploys the code when there is a new commit if it passes the Travis CI tests. In this application, I've several API keys that I managed to keep out of the open source repository by using env variables in my heroku dynos. For the Google server-to-server API, however, I must have a .p12 file. In php, the following will authenticate my client: $client = new Google_Client(); $client-

Generating a Google Hanghouts meeting URL

女生的网名这么多〃 提交于 2021-02-08 08:32:50
问题 I'd like my website to be able to programmatically generate Hangouts URLs that can be forwarded to specific users in order for them to join the same meeting. To my understanding, this would be possible by scheduling an event via Google Calendar . Is there a way to do the same without relying on Google Calendar , meaning via an API call or something similar? 回答1: Meeting URLs can be generated with no API calls. Try: g.co/hangout/yourdomain.com/letshangout However, guests who aren't part of

Generating a Google Hanghouts meeting URL

不羁的心 提交于 2021-02-08 08:32:29
问题 I'd like my website to be able to programmatically generate Hangouts URLs that can be forwarded to specific users in order for them to join the same meeting. To my understanding, this would be possible by scheduling an event via Google Calendar . Is there a way to do the same without relying on Google Calendar , meaning via an API call or something similar? 回答1: Meeting URLs can be generated with no API calls. Try: g.co/hangout/yourdomain.com/letshangout However, guests who aren't part of

Unable to Retrieve Reminder Details from Device Calendar

痴心易碎 提交于 2021-02-08 06:58:58
问题 I am able to retrieve all the events from the device calendar from the below code, @SuppressLint("MissingPermission") private fun getAccountCalendarEvents(selectedEmail: String) { var count = 0 val projectionArray = arrayOf( CalendarContract.Calendars._ID, CalendarContract.Events.TITLE, CalendarContract.Events.DESCRIPTION, CalendarContract.Events.DTSTART, CalendarContract.Events.DTEND, CalendarContract.Events.ALL_DAY, CalendarContract.Events.EVENT_LOCATION, CalendarContract.Attendees

Missing EKEvents when saving multiple Google calendar events

一个人想着一个人 提交于 2021-02-08 04:57:06
问题 I'm looping through around 100 objects that create an event for each using EventKit. I don't "commit" until all the objects are saved and know a calendarIdentifier is successfully fetched for each. Yet about 10-15% of the events never show on the device calendar or online. This only happens with Google Calendar. iCloud and local work fine. I understood when creating multiple events like this, it was preferable to use: [eventStore saveEvent:event span:EKSpanThisEvent commit:NO error:&error]; .

Google Calendar API: Event endTime is decremented by 1 day

旧时模样 提交于 2021-02-08 03:29:06
问题 I'm trying to use the Google Calendar API in my own Java class. Unfortunately, the endTime of the newly created event (vacation in this case) seems to decremented by 1 day. Example: I create an event with startTime 2011-01-01 and endTime 2011-01-05 the event will show up in Google Calendar from 2011-01-01 to 2011-01-04. This is what I got so far (just the date part, taken from the Google Calendar API Developer's Guide, changed to Date because I want All Day events): ... CalendarEventEntry

gapi.auth2.getAuthInstance().isSignedIn.get() is always false when Chrome Browser has multiple accounts

别来无恙 提交于 2021-02-07 14:48:42
问题 I copied the example given in Google Calendar API Quickstart and replaced it with the appropriate info. Every time I refresh the page, I'm asked to authorize before api data is fetched. I'm using Chrome and I currently have multiple accounts / users. I noticed if I open an Incognito Window and sign in with one set of credentials then when I refresh the page I'm not asked to authorize. Note, once I authenticate I receive calendar information so I don't believe it's an issue with client_id ,

gapi.auth2.getAuthInstance().isSignedIn.get() is always false when Chrome Browser has multiple accounts

怎甘沉沦 提交于 2021-02-07 14:47:36
问题 I copied the example given in Google Calendar API Quickstart and replaced it with the appropriate info. Every time I refresh the page, I'm asked to authorize before api data is fetched. I'm using Chrome and I currently have multiple accounts / users. I noticed if I open an Incognito Window and sign in with one set of credentials then when I refresh the page I'm not asked to authorize. Note, once I authenticate I receive calendar information so I don't believe it's an issue with client_id ,

Can iCal schedule an event for the first weekday after BYMONTHDAY if BYMONTHDAY is a weekend?

杀马特。学长 韩版系。学妹 提交于 2021-02-07 14:31:21
问题 If I have a recurring event on a given day of the month (i.e. the 15th) and that day falls on a Saturday or a Sunday, is it possible for iCal to instead schedule the event to occur on the next available week day? 回答1: you cannot set exception but you can use a combination of byday and bymonthday: something like will give you the monday after a week-end which had either on saturday or sunday a 15th. RRULE:FREQ=MONTHLY;BYDAY=MO;BYMONTHDAY=16,17 By combining with another event: RRULE:FREQ

Google Calendar API returns invalid_grant and bad request

偶尔善良 提交于 2021-02-07 07:24:55
问题 In my development environment, I have a user that I just received an OAuth Token for the following scopes. https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.readonly Everything looks fine and I store the token for the user. I then request to list the calendars for the user and I get the invalid_grant with bad request. I try the same request with another user's token (also in my development environment) and it