我使用下面的代碼以註冊用戶的網絡研討會:如何通過PHP調用CITRIX API註冊新的GotoWebinar與會者?
$headers = array(
'HTTP/1.1',
'Accept: application/json',
'Accept: application/vnd.citrix.g2wapi-v1.1+json',
'Content-Type: application/json',
'Authorization: OAuth oauth_token='.$access_token,
'Name_First:test',
'Name_Last:ank',
'Email:[email protected]',
);
$gtw_url = "https://api.citrixonline.com/G2W/rest/organizers/{organizerkey}/webinars/{webinarkey}/registrants";
$curl = @curl_init();
@curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
@curl_setopt($curl, CURLOPT_URL, $gtw_url);
@curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
@curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
@curl_exec($curl);
@curl_close($curl);
我已通過網絡研討會重點和組織者的關鍵。我應該得到這樣的輸出:
HTTP/1.1 201 OK Content-Type: application/json
{
"registrantKey":5678,
"joinUrl":"https://www1.gotomeeting.com/join/123456789/5678"
}
的問題是,當我運行該文件,我得到的輸出
[
{
"registrantKey":106660361,
"firstName":"test",
"lastName":"1",
"email":"[email protected]",
"status":"WAITING",
"registrationDate":"2012-06-29T21:07:10Z",
"joinUrl":"https://www1.gotomeeting.com/join/141654337/106660361",
"timeZone":"America/Denver"
}
]
我使用的創建研討會URL,那麼爲什麼我收到的信息的用戶是否已經註冊?