google-calendar-api

Google oauth2 access token expires in 1 hour. I want to make it 1 day

纵饮孤独 提交于 2020-01-02 07:51:12
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');

Google Calendar API Authentication .NET browser window

二次信任 提交于 2020-01-01 16:51:51
问题 I am using the latest version of the Google .NET Client API (v1.81). I am trying to connect to the Calendar Service using the following code var calendarService = new CalendarService(new BaseClientService.Initializer { HttpClientInitializer = GetCredential(), ApplicationName = "MyApp" }); public UserCredential GetCredential() { UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync( new ClientSecrets { ClientId = _clientId, ClientSecret = _clientSecret }, new[] {

Unauthorized interaction with google calendar API v3

不想你离开。 提交于 2020-01-01 15:43:42
问题 I'm in the same situation as this guy (only that my problem is with python): I'm trying to retrieve data using a service account (using this example and after reading this blog entry since my application is a google app) but I get hit with a login required error and I cannot understand why. Let me represent it with a whole example: In [1]: import httplib2 In [2]: from apiclient.discovery import build In [3]: from oauth2client.client import SignedJwtAssertionCredentials In [4]: f = open(

Unauthorized interaction with google calendar API v3

喜欢而已 提交于 2020-01-01 15:43:34
问题 I'm in the same situation as this guy (only that my problem is with python): I'm trying to retrieve data using a service account (using this example and after reading this blog entry since my application is a google app) but I get hit with a login required error and I cannot understand why. Let me represent it with a whole example: In [1]: import httplib2 In [2]: from apiclient.discovery import build In [3]: from oauth2client.client import SignedJwtAssertionCredentials In [4]: f = open(

How to add events to Outlook Calendar or Google Calendar programmatically?

末鹿安然 提交于 2020-01-01 09:44:57
问题 I have a Java Web application from which the user can add events with date, subject and description (like tasks). I want to send these events to the user's outlook calendar programmatically. Can anyone help me how to achieve this? PS: If it can be done through Google Calendar tell me how to do that as I am not stuck with outlook :) 回答1: You can now use Outlook Calendar REST API and send requests from your java code. For the auth flow see this getting started documentation. Eg. POST to https:/

Google Calendar API V3: Recurring Event Edits

限于喜欢 提交于 2020-01-01 07:15:06
问题 I have an application I'm writing where I use Google Calendar Api (via PHP) to do some administration to my business Google Calendar events. Everything seems to work well on singular events (events that do not reoccur). However, when I go in and programatically edit the instances of recurring events it seems to break the recurring events into singular events. The recurring event ID still seems to be attached to the instances but events seem to be treated as singular events because all the

Trying to create an all-day event using Google Calendar API v3 for Java causes an error

蹲街弑〆低调 提交于 2020-01-01 05:08:29
问题 I can create a timed event using the Java v3 Google Calendar API (as per the sample code on Google's website), but I need to create an all-day event. I call the event's setStart() and setEnd(), i.e. event.setStart(startEventDateTime); event.setEnd(endEventDateTime); These methods require and EventDateTime, i.e. EventDateTime startEventDateTime = new EventDateTime().setDateTime(startDateTime); EventDateTime endEventDateTime = new EventDateTime().setDateTime(endDateTime); I use the setDateTime(

google calendar api with php

你说的曾经没有我的故事 提交于 2020-01-01 03:21:22
问题 i need to integrate google calendar API to show the logged in users google calendar in my php website , with the all the same functions it have in the google calendar , there is any possible way to do this? currently am working with this https://developers.google.com/google-apps/calendar/ so kindly let me know your suggestions . 回答1: Check out some links, Calendar API How to Access Google Calendar With Php Using Google API Google APIs Client Library for Php Integrate your Php application with

Is there a way to programmatically import ICS into Google Calendar?

我是研究僧i 提交于 2019-12-31 08:43:08
问题 I don't see any obvious way to import ICS files into Google Calendar from the API docs here: http://code.google.com/apis/calendar/developers_guide_protocol.html And I'd greatly prefer not to have to parse them myself just to send the appointments into GCal. I'm looking for a programmatic solution, not something like import plugins for Thunderbird, Outlook, etc. Third party APIs to do the ICS parsing are acceptable, in any language. Any ideas? 回答1: I have created a simple open source .net

Google Cal API - Script to Check Events

感情迁移 提交于 2019-12-31 01:59:05
问题 I want to build a script that will check a Authenticated User's Google Calendar via the Google Calendar PHP Client. I was able to build a simple page that lets a user Auth and give permission to the Calendar Events. I receive a token and then grab a 15 upcoming events via: $googleCal = new Google_Service_Calendar($googleClient); $results = $googleCal->events->listEvents($calendarId, $optParams); But what I'm struggling with is how to save this so I can have a script check this everyday to see