[Lazarus] Google APIs
Michael Van Canneyt
michael at freepascal.org
Tue May 19 18:54:37 CEST 2015
On Tue, 19 May 2015, markbass72 wrote:
> 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?
You must use Patch, not update.
Michael.
More information about the Lazarus
mailing list