Thanks for looking into it David, but that was not the problem. Here is my 
next try:

21.08.2011 18:45:35: POST 
https://www.google.com/calendar/feeds/default/private/full
HEAD====================================================================================
Authorization: GoogleLogin auth= ---secret---
Content-Type:application/atom+xml
GData-Version: 2
FORM 
DATA==============================================================================
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' 
xmlns:gd='http://schemas.google.com/g/2005' gd:kind='calendar#event' 
xmlns:gCal='http://schemas.google.com/gCal/2005'>
<category scheme='http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/g/2005#event'/>
<title>future event</title>
<content>text</content>
<gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/>
<gd:where valueString='Mountain View'/>
<gd:when startTime='2011-08-23T01:57:35' endTime='2011-08-23T06:45:35'>
  <gd:reminder method='email' absoluteTime='2011-08-23T00:57:35'/>
  <gd:reminder method='alert' absoluteTime='2011-08-23T00:27:35'/>
</gd:when>
<gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/>
<gd:visibility value='http://schemas.google.com/g/2005#event.default'/>
<gCal:anyoneCanAddSelf value='false'/>
<gCal:guestsCanInviteOthers value='true'/>
<gCal:guestsCanModify value='false'/>
<gCal:guestsCanSeeGuests value='true'/>
<gCal:sequence value='0'/>
</entry>
 
SERVER 
ANSWER=HEADER=================================================================
HTTP/1.1 400 Bad Request
Update-Client-Auth: ---secret---
Set-Cookie: DO_NOT_CACHE_RESPONSE=true;Expires=Sun, 21-Aug-2011 16:45:43 GMT
Expires: Sun, 21 Aug 2011 16:45:43 GMT
Date: Sun, 21 Aug 2011 16:45:43 GMT
Content-Type: text/html; charset=UTF-8
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked


SERVER ANSWER=FORM 
DATA=================================================================
Illegal gd:reminder method or time  specified: -1 seconds
======================================================================================

By the way: The API accepts without complaint events in the past with 
reminders in the past. Here is the proof:

21.08.2011 18:40:55: POST 
https://www.google.com/calendar/feeds/default/private/full
HEAD====================================================================================
Authorization: GoogleLogin auth=---secret---
Content-Type:application/atom+xml
GData-Version: 2
FORM 
DATA==============================================================================
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' 
xmlns:gd='http://schemas.google.com/g/2005' gd:kind='calendar#event' 
xmlns:gCal='http://schemas.google.com/gCal/2005'>
<category scheme='http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/g/2005#event'/>
<title>past event</title>
<content>text</content>
<gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/>
<gd:where valueString='Mountain View'/>
<gd:when startTime='2011-08-21T11:28:55' endTime='2011-08-21T13:52:55'>
  <gd:reminder method='email' minutes='60'/>
  <gd:reminder method='alert' minutes='90'/>
</gd:when>
<gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/>
<gd:visibility value='http://schemas.google.com/g/2005#event.default'/>
<gCal:anyoneCanAddSelf value='false'/>
<gCal:guestsCanInviteOthers value='true'/>
<gCal:guestsCanModify value='false'/>
<gCal:guestsCanSeeGuests value='true'/>
<gCal:sequence value='0'/>
</entry>
 
SERVER 
ANSWER=HEADER=================================================================
HTTP/1.1 201 Created
Update-Client-Auth: ---secret---
Set-Cookie: DO_NOT_CACHE_RESPONSE=true;Expires=Sun, 21-Aug-2011 16:41:04 GMT
Expires: Sun, 21 Aug 2011 16:41:03 GMT
Date: Sun, 21 Aug 2011 16:41:03 GMT
Content-Type: application/atom+xml; charset=UTF-8; type=entry
Cache-Control: private, max-age=0, must-revalidate, no-transform
Vary: Accept, X-GData-Authorization, GData-Version
GData-Version: 2.6
ETag: "GUsITwRHfSp7JGA6WhJX"
Location: 
https://www.google.com/calendar/feeds/default/private/full/8u1orqiinhklmgb9......---changed
Content-Location: 
https://www.google.com/calendar/feeds/default/private/full/8u1orqiinhklmgb9....---changed
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked

SERVER ANSWER=FORM 
DATA=================================================================
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' 
xmlns:app='http://www.w3.org/2007/app' 
xmlns:gCal='http://schemas.google.com/gCal/2005' 
xmlns:gd='http://schemas.google.com/g/2005' 
gd:etag='&quot;GUsITwRHfSp7JGA6WhJX&quot;' gd:kind='calendar#event'>
<id>http://www.google.com/calendar/feeds/default/events/8u1orqiinhklmgb9---changed</id><published>2011-08-21T16:41:03.000Z</published>
<updated>2011-08-21T16:41:03.000Z</updated>
<app:edited>2011-08-21T16:41:03.000Z</app:edited>
<category scheme='http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/g/2005#event'/>
<title>past event</title>
<content>text</content>
<link rel='alternate' type='text/html' 
href='https://www.google.com/calendar/event?eid=OH---changed' 
title='alternate'/>
<link rel='self' type='application/atom+xml' 
href='https://www.google.com/calendar/feeds/default/private/full/8u1-changed'/>
<link rel='edit' type='application/atom+xml' 
href='https://www.google.com/calendar/feeds/default/private/full/8u1---changed'/>
<author>
  <name>[email protected]</name>
  <email>[email protected]</email>
</author>
<gd:comments>
  <gd:feedLink 
href='https://www.google.com/calendar/feeds/default/private/full/8---changed---s/comments'/>
</gd:comments>
<gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/>
<gd:where valueString='Mountain View'/>
<gd:who email='[email protected]' 
rel='http://schemas.google.com/g/2005#event.organizer' 
valueString='[email protected]'/>
<gd:when endTime='2011-08-21T13:52:55.000+02:00' 
startTime='2011-08-21T11:28:55.000+02:00'>
  <gd:reminder method='alert' minutes='90'/>
  <gd:reminder method='email' minutes='60'/>
</gd:when>
<gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/>
<gd:visibility value='http://schemas.google.com/g/2005#event.default'/>
<gCal:anyoneCanAddSelf value='false'/>
<gCal:guestsCanInviteOthers value='true'/>
<gCal:guestsCanModify value='false'/>
<gCal:guestsCanSeeGuests value='true'/>
<gCal:sequence value='0'/>
<gCal:uid value='[email protected]'/>
</entry>
======================================================================================

The only real difference is the use of "minutes" instead of "absoluteTime" 
in the reminder. Of course I could use the "minutes" parameter in most 
cases, but not when I want a reminder after the starttime.
Any explanation?

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to