@@ -99,9 +99,9 @@ |
||
99 | 99 | */ |
100 | 100 | protected function execute() |
101 | 101 | { |
102 | - $authMethod = '?access_token=' . $this->params['access_token']; |
|
103 | - $endpoint = Constants::API_VERSION . $this->path . (('GET' === $this->method) ? '?' . http_build_query($this->params) : $authMethod); |
|
104 | - $endpoint .= (strstr($endpoint, '?') ? '&' : '?') . 'sig=' . static::generateSignature($this->instagram->getApp(), $this->path, $this->params); |
|
102 | + $authMethod = '?access_token='.$this->params['access_token']; |
|
103 | + $endpoint = Constants::API_VERSION.$this->path.(('GET' === $this->method) ? '?'.http_build_query($this->params) : $authMethod); |
|
104 | + $endpoint .= (strstr($endpoint, '?') ? '&' : '?').'sig='.static::generateSignature($this->instagram->getApp(), $this->path, $this->params); |
|
105 | 105 | |
106 | 106 | $request = HelperFactory::getInstance()->request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
107 | 107 |
@@ -79,8 +79,8 @@ |
||
79 | 79 | */ |
80 | 80 | public function loginUrl() |
81 | 81 | { |
82 | - $query = 'client_id=' . $this->app->getId() . '&redirect_uri=' . urlencode($this->callback) . '&response_type=code&state=' . $this->state; |
|
83 | - $query .= isset($this->scopes) ? '&scope=' . urlencode(str_replace(',', ' ', implode(',', $this->scopes))) : ''; |
|
82 | + $query = 'client_id='.$this->app->getId().'&redirect_uri='.urlencode($this->callback).'&response_type=code&state='.$this->state; |
|
83 | + $query .= isset($this->scopes) ? '&scope='.urlencode(str_replace(',', ' ', implode(',', $this->scopes))) : ''; |
|
84 | 84 | |
85 | 85 | return sprintf('%s%s?%s', Constants::API_HOST, Constants::API_AUTH, $query); |
86 | 86 | } |