no message

This commit is contained in:
hajimi
2026-06-11 12:15:29 +08:00
parent 10ebe39c30
commit 96efa1d905
5859 changed files with 815501 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
require_once __DIR__ . '/../../autoload.php';
use Qiniu\Auth;
use Qiniu\Rtc\AppClient;
// 控制台获取密钥:https://portal.qiniu.com/user/key
$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');
$auth = new Auth($accessKey, $secretKey);
$client = new AppClient($auth);
// app 的唯一标识,创建的时候由系统生成
$appId = 'xxxx';
// 获取一个应用当前的配置信息
// 参考文档:https://doc.qnsdk.com/rtn/docs/server_overview#2_1
list($ret, $err) = $client->getApp($appId);
if ($err !== null) {
var_dump($err);
} else {
echo "\n====> $appId Conf: \n";
var_dump($ret);
}