Thierry
Thierry

Reputation: 11

Why I got the parseerror error when creating an event

With the Google Calendar API I have the following error when creating an event. "code": 400, "message": "Parse Error" I'm using PowerBuilder 2017 and Rest Object

Header : "content-type:application/json; charset=utf-8"

Url : POST

https://www.googleapis.com/calendar/v3/calendars/[email protected]/events

Data :

{"summary":"[CARINE Véronique] A","description":"","visibility":"public","location":"","start":{"dateTime":"2020-07-03T15:30:00+02:00","timeZone":"America/Los_Angeles"},"end":{"dateTime":"2020-07-03T16:00:00+02:00","timeZone":"America/Los_Angeles"}}

Response : 400

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "parseError",
    "message": "Parse Error"
   }
  ],
  "code": 400,
  "message": "Parse Error"
 }
}

Have any suggestions? Regards Thierry Regard

Upvotes: 1

Views: 336

Answers (0)

Related Questions