google-calendar-api

How long are nextPageTokens remembered for Gmail and Calendar APIs?

大兔子大兔子 提交于 2021-02-20 19:02:15
问题 The Gmail and Calendar APIs return a nextPageToken value in the response from the users.messages.list and events.list endpoints when pagination is required. If the value of the nextPageToken is provided in the next request to these endpoints, the next page of results is returned. My question : How long are these nextPageToken s persisted behind the Gmail and Calendar APIs? Context : I am building an abstraction on top of both the Gmail and Calendar APIs to return a list of Activities, and

Gsuite resources can't be shared with service account

无人久伴 提交于 2021-02-20 04:39:10
问题 I'm trying to fetch rooms (added from calendar.google.com) service account (created from https://console.cloud.google.com/iam-admin/serviceaccounts) in spring boot project. I had one service account which I created 4-5 month ago, it was working and it is still working with the 3 specific rooms. But if I add service account mail to other rooms, then these rooms are not returned in the project. I did all the steps written here: https://developers.google.com/identity/protocols

Strange error message being returned when creating calendar event

这一生的挚爱 提交于 2021-02-18 18:56:20
问题 I'm creating a google calendar event using the Node.js Google Client API, I'm requesting a conference be created with the event using the following object: var conferenceData = { createRequest: { requestId: uuid(), conferenceSolutionKey: { type: "hangoutsMeet" } } } I get an error back from the server saying: Error: Invalid conference type value. Which doesn't make any sense, since, according to this documentation hangoutsMeet is an acceptable value: The possible values are: " eventHangout "

Strange error message being returned when creating calendar event

末鹿安然 提交于 2021-02-18 18:55:43
问题 I'm creating a google calendar event using the Node.js Google Client API, I'm requesting a conference be created with the event using the following object: var conferenceData = { createRequest: { requestId: uuid(), conferenceSolutionKey: { type: "hangoutsMeet" } } } I get an error back from the server saying: Error: Invalid conference type value. Which doesn't make any sense, since, according to this documentation hangoutsMeet is an acceptable value: The possible values are: " eventHangout "

Google Calendar Api v3 quota exceeded

牧云@^-^@ 提交于 2021-02-11 16:59:47
问题 I'm having a problem with creating calendar events ( With a google service account ), I have the Domain-wide Delegation enabled. The error i'm getting is: "Message[Calendar usage limits exceeded.] Location[ - ] Reason[quotaExceeded] Domain[usageLimits]" I've checked the usage and its below 10 requests ( The quota is set to 1,000,000 ) This is my code: string[] Scopes = { CalendarService.Scope.Calendar, CalendarService.Scope.CalendarEvents }; using (var stream = new FileStream("cred.json",

Importing Google Calendar tasks

时间秒杀一切 提交于 2021-02-11 16:17:38
问题 I'm building a calendar service with php (code igniter framework) and would like to import google calendar from my users. Anyone could show me the light? 回答1: You should use their REST interface. Almost everything you need is covered on this page: http://code.google.com/apis/calendar/v3/getting_started.html#REST There is a PHP client for GData on Google Code: Examples can be found here. 来源: https://stackoverflow.com/questions/8204480/importing-google-calendar-tasks

Restrict Domain wide delegation to specific mailboxes

两盒软妹~` 提交于 2021-02-11 15:30:05
问题 I have been working on a server to server google calendar integration, where by it connects, reads and writes to a user's calendar. This is working perfectly fine, however I have a question regarding permission scope. Using a service account with domain wide delegation, it means that this account has access to calendars for every single users in the organisation from the CEO to me... Is there a way of limiting this scope from Google's side, so that the service account can only access specific

Time Zone in script is and in Google Sheets is different than Google Calendar

空扰寡人 提交于 2021-02-11 14:21:36
问题 I am putting the time zone in as GMT, which matches my calendar settings. However, when the dates and times export into Google Sheets it is coming up an hour prior to the times that are listed on the calendar. Please help to determine what is going wrong. This is my code I am pulling from my calendar of events: var events = cal.getEvents(new Date("October 2, 2018 00:00:00 GMT"), new Date("October 8, 2018 23:59:59 GMT"), {search: '-project123'}); The time in the calendar states 9:25 GMT but

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

冷暖自知 提交于 2021-02-09 09:16: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-

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

醉酒当歌 提交于 2021-02-09 09:16:04
问题 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-