Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Google calendar

Status
Not open for further replies.

papero2

Technical User
Jan 22, 2003
6
IT
Hi all, first of all I apologize for my english basic (I'm Italian). For years, I read with interest the suggested solutions from this forum, and now for the first time I need your valuable help in solving a problem. I'm trying to synchronize the calendar in an existing project with my google calendar. The reading of the events work correctly while writing returns the following error:
*--------------------------------------------------------------------------------------
* Create Event: sample
*--------------------------------------------------------------------------------------
Inizio = CREATEOBJECT("Empty")
ADDPROPERTY(Inizio , "dateTime", "2013-06-20T20:20:50.000")

Fine = CREATEOBJECT("Empty")
ADDPROPERTY(Fine , "dateTime", "2013-06-20T20:20:55.000")

Evento = CREATEOBJECT("Empty")
ADDPROPERTY(Evento , "summary", "Da foxPro")
ADDPROPERTY(Evento , "transparency", "opaque")
ADDPROPERTY(Evento , "status", "confirmed")
ADDPROPERTY(Evento , "location", "")
ADDPROPERTY(Evento , "start", Inizio)
ADDPROPERTY(Evento , "end", Fine)

m.loEvents = loJson.Stringify(m.Evento)

*--------------------------------------------------------------------------------------
* Write events
*--------------------------------------------------------------------------------------

m.lcJSON = loHttp.POST (m.lcUrl, m.loEvents )
****************************************************************************************
* error returned
****************************************************************************************
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Missing end time."
}
],
"code": 400,
"message": "Missing end time."
}
}

Please could you tell me where I'm wrong?
To do this I'm using the code in googlefy-your-app.zip format
Thanks in advance
Sebastiano
 
Hello Sebastiano,
I am having the same problem as you described. Did you manage to solve this problem?

Thanks, Bojan
 
Hi Bojan,
unfortunately I have not managed to solve the problem .... but I'm trying
Greetings, Sebastiano
 
Thanks Nigel
I'ii try that solution

Regards
Sebastiano
 
just looking at your sample code again...

did you try using datetime type rather than a string and let .stringify convert; that way you should get the full ISO format with timezone - which is perhaps what google is expecting.
e.g. ADDPROPERTY(Inizio , "dateTime", datetime())

hth

n
 
Hi nigelgomm,
I have already tested that solution without success...

Regards
Sebastiano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top