PHP code example of rachel / talkfun-sdk
1. Go to this page and download the library: Download rachel/talkfun-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rachel / talkfun-sdk example snippets
'talkfun'=>[
'openID' => xxxx,
'openToken' => 'xxxx'),
],
php
//获取某场直播的记录信息及回放地址
//通过单例模式
$res = app('talkfun')->liveGet(1861102,$expire = 3600);
//通过 Facade 直接使用
$res = Talkfun::liveGet(1861102,$expire = 3600)