google-calendar-api

Creating recurring Google Calendar events from Google Sheet

爷,独闯天下 提交于 2020-01-15 09:33:30
问题 I'm attempting to set up yearly recurring events from a Google spreadsheet, and although I've followed this answer, I still can't get the ID to write to each row and thus allow me to write and check entries. The column layout is RenDate | Domain | Client | Type | Registrar | ID Code: /** * Adds a custom menu to the active spreadsheet, containing a single menu item * for invoking the exportEvents() function. * The onOpen() function, when defined, is automatically invoked whenever the *

Synchronising Google Calendar to my application in Android

别来无恙 提交于 2020-01-15 07:50:30
问题 I have made a GUI application in Android, to which I would like to sync with Google Calendar. How could this be done? 回答1: Google has well-documented APIs for its services. You can find the Calendar API here: http://code.google.com/apis/calendar/data/2.0/developers_guide.html You might want to also take a look at OAuth as the authentication mechanism, since most users don't like giving out their passwords to apps. Here's a summary I wrote about OAuth on Android: http://nilvec.com/implementing

403 Forbidden Error adding an event to a Google Calendar

心已入冬 提交于 2020-01-15 03:33:13
问题 Used the code from [ https://developers.google.com/google-apps/calendar/create-events ] last month to add an event to a Google Calendar from an Android app and it worked. Now each time I attempt to add an event I get this error: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden W/System.err: { W/System.err: "code" : 403, W/System.err: "errors" : [ { W/System.err: "domain" : "global", W/System.err: "message" : "Forbidden", W/System.err: "reason" : "forbidden" W

Why am I getting a (401) Unauthorized Error in Google Calendar API

梦想与她 提交于 2020-01-15 01:26:09
问题 Ive been playing around with the Google Calendar API and am getting stuck on something. When i call this below to delete a calendar event it works fine on the first pass and usually the second. However, around the 2nd or 3rd time I call this method I get a (401) Unauthorized error . It uses the same credentials every time. If I get the exception, I can reset the credentials in the catch and it works fine. I would prefer not to have to do this. Any ideas? CalendarService myService = new

Google sign-in showing incorrect project name - iOS

拥有回忆 提交于 2020-01-14 09:09:08
问题 I have been integrating Google sign-in for syncing the calendar events using Google Calendar API. While trying to sign in, I am getting this. As you can see the name of the project/app is displayed as "project-xxxxxxxxx" rather than the project name itself. How can I display the original project name here? I have already tried How do I set the project name in the Google iOS Sign-In screen? , but of no use! 回答1: Atlast I found it! I am also using Firebase for database. So when I checked its

How to create a Google Calendar event without a reminder / How to get Service Accounts to impersonate users

社会主义新天地 提交于 2020-01-14 04:36:12
问题 I can insert an event in a Google Calendar using the PHP library, but I want to create the event without a reminder (actually, I want to create it with a reminder that is not the default, but to keep things simple, I'll stick to just turning off the reminder). Here is my code to turn off the reminder: $reminders = new Google_EventReminders(); $reminders->setUseDefault(false); $event->setReminders($reminders); This seems to be sent successfully, and I get a successful return code, but when I

Integrate my website with google calendar

青春壹個敷衍的年華 提交于 2020-01-13 20:28:28
问题 Im developing a website in PHP. The users of this site are allowed to book appointments from the calendar that i have provided. When a user makes a booking it should be added to my google calendar. What kind of authentication mechanism would i need for this type of scenario? Which one from the following? 1. Web applications 2. Service accounts 3. Installed applications NB: I dont want to access my site user's google calendar. I just want their booking be shown in my google calendar. And, if

Google Calendar - Permission to Access

喜夏-厌秋 提交于 2020-01-13 08:14:10
问题 Is it possible for me to create an application that can send our requests to access to users' Google Calendar so that I can see the events in there and be able to add, edit, and delete events? I do not want the users to log into my website to enable this access. Rather, I want to be able to send this request, perhaps via email. Alternatively, perhaps they could log in the web app and authorize access themselves somehow. 回答1: One option would be to e-mail the user a link to the OAuth 2.0

cURL 'Content-length required' error… 3 days of searching, no luck

吃可爱长大的小学妹 提交于 2020-01-12 18:22:08
问题 Before you ask: I have already checked every similar question that already had an answer, and none of the proposed solutions work. So I'm hoping someone may be able to notice a mistake in my code. When submitting a cURL post to Google, I am returned with a 411 error, "POST requests require a Content-length header" //Info required to authenticate $URL = "https://www.google.com/accounts/ClientLogin"; $POST = http_build_query(array( 'Email' => 'XXXXXXX@gmail.com', 'Passwd' => 'XXXXXXXXXXXXXXX',

Authenticating with Google API using AccountManager

亡梦爱人 提交于 2020-01-12 07:58:10
问题 I've been struggling with this for a couple days now. I'm trying to make calls to Google Calendar using authentication via Android's AccountManager . I retrieve an auth token using the usual method: AccountManager manager = AccountManager.get(this); String authToken = manager.getAuthToken(account, AUTH_TOKEN_TYPE, true, null, null).getResult().getString(AccountManager.KEY_AUTHTOKEN); And then, with that token, I create a Calendar instance like this: HttpTransport transport = AndroidHttp