getEvents method fail
ermilov opened this issue · 1 comments
ermilov commented
Method getEvents hasn't $channel
but required in $param
public function getEvents($is_filtered=true, $page_size=25, $page=1) {
if(!$this->isLoggedIn) {
throw new ClubhouseException('not logged in', 400);
return ;
}
$param=[
'channel' => $channel,
'channel_id' => null
];
$request = $this->get('/get_events', $param);
if( is_array($request) && array_key_exists('error_message', $request) ) {
throw new ClubhouseException('get events failed', 500);
return ;
}
return $request;
}
fadhiilrachman commented
Thank you! Now fixed, please update the package from composer.
$ composer require fadhiilrachman/clubhouse-api