/** * @param string $report_id * @param string|null $consumer_key_counter * * @return mixed */ public function downloadFinancialOverviewReport($report_id, $consumer_key_counter = NULL) { $params = array(); if ($consumer_key_counter) { $params['balieConsumerKey'] = $consumer_key_counter; } $response = $this->oauth_client->authenticatedGet("uitpas/report/financialoverview/organiser/{$report_id}/download", $params); return $response; }
/** * Command to check the node status for (like following). * * @param String $contentType * The content type of the target node. * @param Integer $nodeId * The nodeId to target the node (can be url). * @param Integer $userId * The userId to check the node status for. */ public function getNodeStatus($contentType, $nodeId, $userId) { $data = array('nodeId' => $nodeId, 'userId' => $userId, 'contentType' => $contentType); $result = $this->oauth_client->authenticatedGet('node/status', $data); try { $xml = new CultureFeed_SimpleXMLElement($result); } catch (Exception $e) { throw new CultureFeed_ParseException($result); } $code = $xml->xpath_str('/response/code'); if (!empty($code) && $code == "SUCCESS") { return $xml->xpath_str('/response/follows') == "true" ? TRUE : FALSE; } throw new CultureFeed_ParseException($result); }