/** * {@inheritdoc} */ public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) { if (is_null($this->baseApiUri)) { $this->setBaseApiUri($this->storage->retrieveAccessToken($this->service())); } return parent::request($path, $method, $body, $extraHeaders); }
public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) { $params = ['oauth_token' => 'qyprd3VVTi05a8Ukbv2DNO2Z2CP1CwflHHrGUiAOyPMQ1CTB', 'oauth_nonce' => $this->_nonce(), 'oauth_consumer_key' => $this->credentials->getConsumerId(), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_timestamp' => time(), 'oauth_version' => '1.0']; $responseBody = $this->httpClient->retrieveResponse(new Uri(\Config::get('intuit.url') . $path), $params, $extraHeaders); dd($responseBody); array_walk($params, function (&$val, &$key) { $key = strtolower($key); $val = strtolower($key) . '=' . $val; }); return parent::request($path, $method, $body, $extraHeaders); }
/** * {@inheritdoc} */ public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) { $uri = new Uri($this->baseApiUri . $path); $uri->addToQuery('v', $this->apiVersionDate); return parent::request($uri, $method, $body, $extraHeaders); }
/** * {@inheritdoc} */ public function request($path, array $body = [], $method = 'GET', array $extraHeaders = []) { $uri = $this->determineRequestUriFromPath($path); $uri->getQuery()->modify(['v' => $this->apiVersionDate]); return parent::request($uri, $body, $method, $extraHeaders); }
/** * {@inheritdoc} */ public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) { $uri = $this->determineRequestUriFromPath($path, $this->baseApiUri); $uri->addToQuery('v', $this->apiVersionDate); return parent::request($uri, $method, $body, $extraHeaders); }