sahilg1410 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Bad request 400 (re-opened) #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please consider an old one that is happening again:

https://code.google.com/p/google-api-php-client/issues/detail?id=87#c4

Original issue reported on code.google.com by xstefani...@gmail.com on 14 Apr 2013 at 3:57

GoogleCodeExporter commented 9 years ago
More ever I successfully can quick add events on my calendar by:

...
$createdEvent = $cal->events->quickAdd($calander_work_id, $quick_add);
...

but the insert add new event wont work with fatal error:
...
$event = new Google_Event();
$event->setSummary($event_title);
$event->setLocation($event_address);
$event->setDescription($event_description);
$start = new Google_EventDateTime();
$start->setDateTime(date('Y-m-d'));
$event->setStart($start);
$end = new Google_EventDateTime();
$end->setDateTime(date('Y-m-d'));
$event->setEnd($en
$createdEvent = $cal->events->insert($calander_work_id, $event);  
....

Please see the referred issue, id=87

Original comment by xstefani...@gmail.com on 14 Apr 2013 at 4:20

GoogleCodeExporter commented 9 years ago

Original comment by ianbar...@google.com on 15 Apr 2013 at 9:32