/** * @return AccountancyMonth * @throws IfirmaException */ protected function _getCurrentAccountancyMonth() { $this->_initCurrentCurl(self::API_ACCOUNTANCY_MONTH_URL); $key = Utils::hexToStr($this->_getConfig()->{ConnectorConfig::API_KEY_SUBSCRIBER}); $messageHash = Utils::hmac($key, sprintf("%s%s%s", self::API_ACCOUNTANCY_MONTH_URL, $this->_getConfig()->{ConnectorConfig::API_LOGIN}, ConnectorConfig::API_KEY_SUBSCRIBBER_NAME)); $this->_setCurlGetOptions(self::API_ACCOUNTANCY_MONTH_URL, $this->_getRequestHeaders($messageHash)); $rsp = curl_exec($this->_currentCurl); return ConnectorResponse::constructAccountancyMonthFromResponse($rsp); }