| @@ 343-357 (lines=15) @@ | ||
| 340 | * @param string $etag |
|
| 341 | * @return EventDeletedResponse |
|
| 342 | */ |
|
| 343 | public function deleteEvent($calendar_url, $uid, $etag) |
|
| 344 | { |
|
| 345 | $http_response = $this->makeRequest( |
|
| 346 | RequestFactory::createDeleteRequest |
|
| 347 | ( |
|
| 348 | $calendar_url.$uid.self::SchedulingInformationSuffix, |
|
| 349 | $etag |
|
| 350 | ) |
|
| 351 | ); |
|
| 352 | ||
| 353 | return new EventDeletedResponse |
|
| 354 | ( |
|
| 355 | $this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode() |
|
| 356 | ); |
|
| 357 | } |
|
| 358 | ||
| 359 | /** |
|
| 360 | * @param string $event_url |
|
| @@ 427-441 (lines=15) @@ | ||
| 424 | * @param string|null $etag |
|
| 425 | * @return CalendarDeletedResponse |
|
| 426 | */ |
|
| 427 | public function deleteCalendar($calendar_url, $etag = null) |
|
| 428 | { |
|
| 429 | $http_response = $this->makeRequest( |
|
| 430 | RequestFactory::createDeleteRequest |
|
| 431 | ( |
|
| 432 | $calendar_url, |
|
| 433 | $etag |
|
| 434 | ) |
|
| 435 | ); |
|
| 436 | ||
| 437 | return new CalendarDeletedResponse |
|
| 438 | ( |
|
| 439 | $this->server_url, (string)$http_response->getBody(), $http_response->getStatusCode() |
|
| 440 | ); |
|
| 441 | } |
|
| 442 | } |
|