doing/wylive

网易直播服务器的SDK(php)

dev-master 2018-02-22 03:38 UTC

This package is auto-updated.

Last update: 2024-09-15 11:22:12 UTC


README

步骤一:配置相关信息

在WyConfig.php中配置WY_APPKEY和WY_APPSCECRET。WY_REQUESTTYPE无需修改

步骤二:调用接口 详细接口说明请参考demoServerAPI.php

//创建直播间
print_r(\WyLive\WyLiveApi::instance()->channelCreate('test_channel',1));
//也可以先在类文件顶部use后调用
use WyLive\WyLiveApi;
print_r(WyLiveApi::instance()->channelCreate('test_channel',1));