cb-ccg / apex-google-data

Automatically exported from code.google.com/p/apex-google-data
0 stars 0 forks source link

Hosted Google Apps requires SSL endpoints #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tried to use the toolkit to retrieve and edit Google Calendars on a Apps 
for your domain instance
2.
3.

What is the expected output? What do you see instead?
Expected successful request and xml received, instead got 412 
Precondition Failed response from Google and no indicator of the possible 
SSL issue.

What version of the product are you using? On what operating system?
The latest, N/A

Please provide any additional information below.
After changing the endpoints in the CalendarService class to https, this 
resolved the problem.  Seems like a good idea to update this either way 
since both hosted Google Apps and personal Google logins work with SSL.

Original issue reported on code.google.com by davemane...@gmail.com on 18 Mar 2010 at 3:51

GoogleCodeExporter commented 9 years ago
Here are the new properties of the CalendarService class (along with one that we
added for scope):

public static final string GOOG_CALENDAR_SCOPE = 
'https://www.google.com/calendar/feeds';
public static final string defaultFeed = 
'https://www.google.com/calendar/feeds/default';
public static final string allCalendars =
'https://www.google.com/calendar/feeds/default/allcalendars/full';
public static final string ownCalendars =
'https://www.google.com/calendar/feeds/default/owncalendars/full';

Original comment by davemane...@gmail.com on 18 Mar 2010 at 3:42