google-calendar-api

Refreshing Tokens with Google API for Google Calendar v3

让人想犯罪 __ 提交于 2019-12-30 11:22:22
问题 I'm trying to use Google API (PHP) to perform a daily sync between a system calendar and the user's Google Calendars. I want a system user to be able to set up access to their calendar once from within the system, then the system can synchronise the calendars each day via a cron job. I have managed to get the entire process working, from authorising the access to syncing the calendars, but I am getting stuck with the token expiry times. The way I thought it worked in v3 was the old token

Google Calendar Api, Is meeting Room available?

时光怂恿深爱的人放手 提交于 2019-12-30 08:34:05
问题 How do you list availability of a spacific calendar resource(Room) for a specific DateTime? Like if I want to list all Today's events for meeting Room(across all user accounts events that have booked meeting room for today), which google calendar api call can give me that? I get the Room details from Google Calendar Resource api but can't get all events booked for that room by different accounts, Appriciate it if you can help 回答1: You will need to be authenticated as a user that has read

Google calendar API for PHP simple read-only request to get calendar events

送分小仙女□ 提交于 2019-12-30 08:13:20
问题 I'd like to write some simple PHP code for a website, to get read-only access to a public Google calendar list of events using Google's calendar API V3. I simply need to display a list of upcoming events from the calendar on a web page. I've read the developer docs and looked at the getting started section and the get events example code but I'm a bit confused. I'm wondering: Is there a simpler way to do what I need that avoids all this OAuth stuff? Is there a non-authenticated access method?

Android NetworkOnMainThreadException inside of AsyncTask

倖福魔咒の 提交于 2019-12-30 07:21:06
问题 I have a problem on ICS when I try to use google calendar api. To get a list of events, I have a AsyncTask and inside doInBackground() I make the service calls but still I receive the NetworkOnMainThreadException error. Here is my code: I call my AsyncTask like this: new GoogleCalendarEvents().execute(new Object()); And my AsyncTask looks like this: private class GoogleCalendarEvents extends AsyncTask<Object, Object, Object> { @Override protected Object doInBackground(Object... objects) {

Google calendar v3 Push notification expiry

99封情书 提交于 2019-12-30 05:26:25
问题 I am using Google Calendar Push Notifications. All is working well and I register my channel with no issue. Changes to the calendar result in a notification as expected. The issue is however that after an hour or so the notifications expire. In reading the documentation I cannot work out why there is an expiry given that I am not specifying one. When the channel is registered the response actually states an expiry date of 1 week from when I register the channel - e.g. Fri, 31 Jan 2014 03:23

Android: How to interface with Google Calendar?

天涯浪子 提交于 2019-12-30 04:57:07
问题 I am building an app for Android 2.1 that provides notifications based on calendar events. But I'm aware there are issues with the Calendar API not being readily available / stable / whatever. What I'd like to do is somehow communicate with the user's Google Calendar to get a list of tasks every few hours, or perhaps when the calendar is updated, and then store that data locally so they don't need to have an active internet connection at all times. Then at a particular time, the notifcation

Sync from Android phone's calendar to Google Calendar on web without using Google Calendar Data API. Is this possible?

喜夏-厌秋 提交于 2019-12-29 07:35:31
问题 From the Google Calendar Help document on the web, it is stated that:: Is Google Calendar for mobile devices in sync with Google Calendar? Answer: Yes. Changes made in Google Calendar when accessed from your computer will be reflected in Google Calendar for mobile. For example, if you create a new event in your computer's browser, the event will automatically appear in Google Calendar the next time that you log in from your mobile device. I have tried this, i created a task in the Google

Google Calendar API OAuth2 Troubles on Android Honeycomb

南笙酒味 提交于 2019-12-29 05:28:08
问题 I am working on an Android Honeycomb (v3.0) application that has a requirement of communicating with the Google Calendar API. I would like to allow my application to access a particular Google account's Calendar data in order to read and create events. Unfortunately, I ran into a problem with authorization using OAuth2. Here's what I have so far: 1) The Google account whose calendar I would like to access is registered within the Android device I am working with. 2) I enabled the Calendar API

Why is Google Calendar API (oauth2) responding with 'Insufficient Permission'?

元气小坏坏 提交于 2019-12-28 03:01:28
问题 I'm doing a get request to the following URL (with {id} replaced with the id from the web interface): https://www.googleapis.com/calendar/v3/calendars/{id} A few assertions: The Authorize header is being correctly set with a valid access token (the token works fine for the Analytics API) I've set the following scope for oauth2, which shows up correctly: https://www.googleapis.com/auth/calendar The token doesn't appear to have expired; it works for the Analytics API. { "error": { "errors": [ {

Google Data API Client Libraries with proxy

爷,独闯天下 提交于 2019-12-25 18:37:57
问题 I use java and gdata API to manage my Calendar's data. But it works only if I have direct access to the Internet. In my case I have to use proxy. Is there any way to manage my Google calendar's data through the proxy? I'v tried this way: System.setProperty("http.proxyHost", "myproxy.mydomain.com"); System.setProperty("http.proxyPort", "3128"); URL feedUrl = new URL("http://www.google.com/calendar/feeds/...."); CalendarService myService = new CalendarService("exampleCo-exampleApp-1"); String