谢谢你抽出时间回顾我的问题。
我一直在尝试实现Citrix Go2Webinar Api,并找到了一个很好的框架:https://github.com/teodortalov/citrix
我已经成功地注册了用户,但是我不知道如何从API获得响应。
public function user_registration($user, $webinar_id)
{
$client = new \Citrix\Authentication\Direct([$this->api_key]);
$client->auth($this->username, $this->password);
$webinar = new \Citrix\GoToWebinar($client);
$registration = array('firstName' => $user['first_name'], 'lastName' => $user['last_name'], 'email' => $user['email']);
$registrant = $webinar->register($webinar_id, $registration);
return $registrant;
}我得到的响应看起来像是一堆受保护的变量。我的问题不应该是调用一个方法来获得格式化的响应,这看起来像Citrix API希望返回的内容:
{
"registrantKey": 0,
"joinUrl": "string"
}发布于 2016-06-10 15:20:57
这些方法都在consumer.php中
$registrant = $webinar->register($webinar_id, $registration);
$myJoinUrl = $registration->getJoinUrl();
$myRegistrantKey = $registration->getId();https://stackoverflow.com/questions/34112962
复制相似问题