public function get_channels($params = array()) { $response = $this->get('/channels', $params); if ($response['status'] === 200) { $response = json_decode($response['body']); $response->channels = get_object_vars($response->channels); } else { $response = false; } return $response; }
/** * Fetch a list containing all channels * * @param array $params Additional parameters for the query e.g. $params = array( 'info' => 'connection_count' ) * * @return array */ public function get_channels($params = array()) { return $this->_pusher->get_channels($params); }