On 15/05/2015 12:59, Michael Van Canneyt wrote:


On Fri, 15 May 2015, markbass72 wrote:

Now it works!

Great, because I almost got a heart attack :)

Michael.


please, stay away from heart attacks ok?
:)


I still have some problems with either commit 30859 and 30885.

In calendar demo, event listbox, double click event, I have added this code:

procedure TMainForm.LBEventsDblClick(Sender: TObject);
var Entry: TEvent;
begin
  Entry:=Events.items[LBEvents.ItemIndex];
  try
    Entry.summary:='new summary';
FCalendarAPI.EventsResource.Update(FCurrentCalendar.ID, entry.id, Entry);
    ShowMessage('event updated');
  except
    on e: exception do begin
       ShowMessage('response failed:'+#10+e.Message);
    end;
  end;

end;

It looks like a required field is missing but time fields are ok (as inserted from browser in google calendar web app).
Can you help me?

Thanks in advantage,
nomorelogic


--------------------------------------------------------------------------------
Request : PUT https://www.googleapis.com:443/calendar/v3/calendars/account...@gmail.com/events/f8umj295ncoahohqh2o8rjrsbc
Headers:
Content-type=application/json
Authorization: Bearer ya29.eAE--gypYwbsLnh4YyQVrMXLMbbtHgujdHaQXlYxNRROhO0Oy6eAurHoVpetFYvamWgxdbYAiKb5RA
Body:
{ "summary" : "new summary" }
--------------------------------------------------------------------------------
Response : 400 : Bad Request
Headers:
HTTP/1.0 400 Bad Request
Vary: X-Origin
Content-Type: application/json; charset=UTF-8
Date: Tue, 19 May 2015 13:26:49 GMT
Expires: Tue, 19 May 2015 13:26:49 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=1
Accept-Ranges: none
Vary: Origin,Accept-Encoding

Body:
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Missing end time."
   }
  ],
  "code": 400,
  "message": "Missing end time."
 }
}



--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to