问题描述
enter image description here /** * @Route("/postmetting",name="postmessage") * @param 请求 $request * @return bool|string */ 公共函数 postMessage1Action(Request $request) { //$old_token = "MWE2ODhiODEtYzFkNi00YzM0LWEwZGMtN2NkOWE2ODk5MzljYWQ2MDkzMWUtZWRl_P0A1_59287f65-bd33-481e-afce-06271012a"; $token = "Yzg5N2RmMDMtMjcyNy00YmU2LThkZDAtMGNkZDEzNTRmNmFmYmIwNWY2NjYtZDlh_P0A1_59287f65-bd33-481e-afce-062471012; $url = "https://webexapis.com/v1/meetings,[ 'headers' => array('Authorization' => $token,'content-type' => 'application/json'),'验证' => 真 ] ";
// $url = "https://webexapis.com/v1/meetings";
$data = [
'title' => 'test','agenda' => 'test webex','password' => 'Webex@123',// 'start' => new DateTime(),'start' => date(DATE_ISO8601,strtotime('2021-4-7 13:21:46')),// 'end' => new DateTime('+30 mins'),'end' => date(DATE_ISO8601,strtotime('2021-4-7 20:21:46')),'timezone' => "Asia/kolkata",'hostEmail' => '[email protected]','siteUrl' => 'admin.webex.com','enabledAutoRecordMeeting' => true,"joinBeforeHostMinutes" => 0,"sendEmail" => false,"allowAuthenticatedDevices" => false,"enableConnectAudioBeforeHost" => false,"allowFirstUserToBeCoHost" => false,"invitees" => [
"email" => "[email protected]","displayName"=> "John Andersen","coHost"=> false
],];
$curl = curl_init($url);
//echo "<pre>"; var_dump($url); echo "</pre>";
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_POSTFIELDS,http_build_query($data));
// curl_setopt($curl,CURLOPT_HTTPHEADER,[
// 'Content-Type: application/json',// 'Authorization : Yzg5N2RmMDMtMjcyNy00YmU2LThkZDAtMGNkZDEzNTRmNmFmYmIwNWY2NjYtZDlh_P0A1_59287f65-bd33-481e-afce-06271012a4c6'
// ]);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$response = curl_exec($curl);
var_dump($response);die();
curl_close($curl);
return $this->render('@Home/Default/messageview.html.twig',['response' => $response]);
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)