对接保利威直播api-php
api官方接口地址
https://help.polyv.net/index.html#/live/api/channel/operate/basic_create
零、创建直播分类
//创建直播分类
//请求头
$data = [
'appId'=>'',
'timestamp' =>$this->tretime(),
'categoryName'=>$title,//分类名
];
$server = '';
$data['sign'] = $this->sort($data,$server);
ksort($data);
$url = 'http://api.polyv.net/live/v3/user/category/create';
$result = $this->postJson($url,'',http_build_query($data));
return json_decode($result,true);
一、创建频道
代码如下(示例):
//创建频道
//请求头
$data = [
'appId'=>'',//appid
'timestamp'