function report($key) { $this->authenticate(); $url = 'https://' . $this->node . "/api/getReport.sjs?key={$key}"; list($status, $data) = $this->client->send($url, null); return DemocracyInAction_Parser::parse_report($data); }
function report($key, $options = array()) { $this->authenticate(); $op = ""; if (count($options) > 0) { $op = '&userVals=u' . $options['report_condition_KEY'] . '=' . $options['condition']; } $url = 'https://' . $this->node . "/api/getReport.sjs?key={$key}{$op}"; list($status, $data) = $this->client->send($url, null); if ($status != 200) { return new Exception($this->error_resp($data)); } return DemocracyInAction_Parser::parse_report($data); }