From ced6f70866a6ef3827e055920c212f73f62a125a Mon Sep 17 00:00:00 2001 From: zou_luxian Date: Tue, 10 Dec 2019 21:09:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=95=99=E5=AE=A4=E8=AF=BE=E5=90=8E=E8=AF=84=E4=BB=B7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BJCloud.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/BJCloud.php b/src/BJCloud.php index e2d4d71..10ee632 100644 --- a/src/BJCloud.php +++ b/src/BJCloud.php @@ -376,6 +376,31 @@ public function liveAccountGetClassCallbackUrl() return $this->call('/openapi/live_account/getClassCallbackUrl'); } + /** + * 获取教室课后评价数据 + * http://dev.baijiayun.com/wiki/detail/79#h6-55 + * @param string|int $roomId 房间id + * @param int $page + * @param int $pageSize + * @param string $date + * @return array|mixed + * @throws BJCloudException + */ + public function roomDataGetEvaluationStat($roomId, $page, $pageSize = 20, $date = '') + { + $params = [ + 'room_id' => $roomId, + 'page' => $page, + 'page_size' => $pageSize + ]; + + if ($date) { + $params['date'] = $date; + } + + return $this->call('/openapi/room_data/getEvaluationStat', $params); + } + //================================================== // 以下为系统逻辑 //==================================================