Polyv Help Center

Help Center

Chat Room Close Cloud Meeting PPT Interface

Updated: 2022-09-02 18:08:07

Interface URL

http://api.polyv.net/live/v3/channel/chat/close-meeting-ppt

Interface Description

1. Provides an interface to close the cloud meeting PPT in the chat room.
2. Supports HTTPS.

Supported Format

JSON

Request Method

POST

Request Rate Limit

TRUE

Request Parameters

Parameter Required Type Description
appId Yes string Obtained from API settings, the appId registered in the live streaming system.
timestamp Yes string Current time in seconds (13-digit timestamp).
sign Yes String Signature, a 32-character uppercase MD5 value. The appSecret key used to generate the signature is critical for communication data security. It must never be saved or used directly on the client side. All APIs must be called through the customer's own server to relay requests to the POLYV server and obtain response data. For details, see Signature Generation Rules.
channelId Yes int Channel ID.

Example of Successful Response

{
  "code": 200,
  "status": "success",
  "message": "",
  "data": "发送成功"
}

Example of Failed Response

Signature Error

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

Missing Parameter channelId

{
    "code": 400,
    "status": "error"
    "message": "param should not be empty: channelId",
    "data": ""
}

Response Field Description

Name Type Description
code string Response code: 200 for success, 400 for failure, 403 for signature error, 500 for server error.
status string "success" for success, "error" for failure.
message string Error message when an error occurs.

PHP Request Example

<?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&timestamp=$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);
?>
联系客服,在线咨询