http://api.polyv.net/live/v3/channel/chat/close-meeting-ppt
1、提供关闭聊天室云会议ppt的接口
2、支持https
{
"code": 200,
"status": "success",
"message": "",
"data": "发送成功"
}
{
"code": 403,
"status": "error",
"message": "invalid signature.",
"data": ""
}
{
"code": 400,
"status": "error"
"message": "param should not be empty: channelId",
"data": ""
}
<?php
//引用config.php
include 'config.php';
$channelId = '123456';
$params = array(
'appId' => $appId,
'timestamp' => $timestamp,
'channelId' => $channelId
);
//生成sign
$sign = getSign($params); //详细查看config.php文件的getSign方法
$url="http://api.polyv.net/live/v3/channel/chat/close-meeting-ppt?appId=$appId×tamp=$timestamp&channelId=$channelId";
$ch = curl_init() or die ( curl_error() );
curl_setopt( $ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 360);
$output = curl_exec ( $ch );
curl_close ( $ch );
print_r($output);
?>