Exemplo n.º 1
0
 public function testCanCreateAnEventPayload()
 {
     $createEventPayload = $this->joindinEvent->getCreateEventPayload($this->event, 'a name', 'a description');
     //        print_r($createEventPayload);
 }
Exemplo n.º 2
0
 /**
  * @param string $language
  * @return \Psr\Http\Message\ResponseInterface
  */
 public function createJoindinTalk($language = 'English - UK')
 {
     $response = $this->httpClient->post($this->joindinEvent->getUrl('events/' . $this->joindinEvent->getJoindinEventID() . '/talks'), ['json' => $this->joindinEvent->getCreateEventTitlePayload($this->event, $language), 'headers' => $this->joindinEvent->getHeaders()]);
     $this->joindinEvent->setTalkLocation($response->getHeader('location')[0]);
     return $response;
 }