@@ -32,7 +32,7 @@ |
||
32 | 32 | ]; |
33 | 33 | |
34 | 34 | $res = $client->get($this->getDownloadUrl(), [ |
35 | - 'headers' => $headers, |
|
35 | + 'headers' => $headers, |
|
36 | 36 | ]); |
37 | 37 | |
38 | 38 | return $res->getBody(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | use Query\Findable; |
23 | 23 | |
24 | 24 | protected $fillable = [ |
25 | - 'ID', |
|
25 | + 'ID', |
|
26 | 26 | 'Created', |
27 | 27 | 'Description', |
28 | 28 | 'DocumentIsCreatable', |
@@ -166,12 +166,12 @@ |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | // If access token is not set or token has expired, acquire new token |
169 | - if (empty($this->accessToken)){ |
|
170 | - $this->acquireAccessToken(); |
|
171 | - }else if($this->tokenHasExpired()){ |
|
172 | - return 'expired'; |
|
173 | - /*throw new Exception("token is expired and need to update");*/ |
|
174 | - } |
|
169 | + if (empty($this->accessToken)){ |
|
170 | + $this->acquireAccessToken(); |
|
171 | + }else if($this->tokenHasExpired()){ |
|
172 | + return 'expired'; |
|
173 | + /*throw new Exception("token is expired and need to update");*/ |
|
174 | + } |
|
175 | 175 | |
176 | 176 | $client = $this->client(); |
177 | 177 |