1
感謝您花時間審查我的問題。Citrix GoToWebinar API響應與teodortalov/citrix
我一直在努力實現思傑Go2Webinar阿比發現這個漂亮的框架: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;
}
我得到的迴應看起來像一堆受保護的變量。我的問題我不應該能夠調用一個方法來獲取格式的響應,它看起來像什麼思傑API預計返回:
{
"registrantKey": 0,
"joinUrl": "string"
}