Example #1
0
 /**
  * @param AbstractRequest $request
  * @return \Sched\Response\AbstractResponse
  */
 public function performRequest(AbstractRequest $request)
 {
     $httpResponse = $this->post($request->getApiEndpoint(), $request->getData());
     $response = $request->getResponseObject();
     $response->setResponse($httpResponse);
     return $response;
 }
Example #2
0
 /**
  * @param array $tags
  * @return \Sched\Request\Session\CreateRequest
  */
 public function setTags(array $tags)
 {
     return parent::setTags(implode(',', $tags));
 }
Example #3
0
 /**
  * @param \DateTime $date
  * @return \Sched\Request\Site\CreateRequest
  */
 public function setEventEnd(\DateTime $date)
 {
     return parent::setEventEnd($date->getTimestamp());
 }
Example #4
0
 /**
  * @param \DateTime $date
  * @return \Sched\Request\Site\SyncRequest
  */
 public function setModifyDate(\DateTime $date)
 {
     return parent::setModifyDate($date->getTimestamp());
 }