@@ -66,13 +66,13 @@ |
||
66 | 66 | $endpoint = Constants::API_VERSION.$this->path.(('GET' === $this->method) ? '?'.http_build_query($this->params) : $authentication_method); |
67 | 67 | $endpoint .= (strstr($endpoint, '?') ? '&' : '?').'sig='.static::generateSignature($this->instagram->getClientSecret(), $this->path, $this->params); |
68 | 68 | |
69 | - $request = HelperFactory::request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
|
70 | - if ($request !== null) { |
|
71 | - $this->response = new InstagramResponse($request); |
|
72 | - $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
73 | - } else { |
|
74 | - throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
75 | - } |
|
69 | + $request = HelperFactory::request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
|
70 | + if ($request !== null) { |
|
71 | + $this->response = new InstagramResponse($request); |
|
72 | + $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
73 | + } else { |
|
74 | + throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
75 | + } |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /* |