Skip to content

Commit

Permalink
接口 获取教室课后评价数据
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulux committed Dec 10, 2019
1 parent 76466fe commit ced6f70
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/BJCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//==================================================
// 以下为系统逻辑
//==================================================
Expand Down

0 comments on commit ced6f70

Please sign in to comment.