| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function download() |
||
| 24 | { |
||
| 25 | $client = new Client(); |
||
| 26 | |||
| 27 | $headers = [ |
||
| 28 | 'Accept' => 'application/json', |
||
| 29 | 'Content-Type' => 'application/json', |
||
| 30 | 'Prefer' => 'return=representation', |
||
| 31 | 'Authorization' => 'Bearer ' . $this->connection()->getAccessToken(), |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $res = $client->get($this->getDownloadUrl(), [ |
||
| 35 | 'headers' => $headers, |
||
| 36 | ]); |
||
| 37 | |||
| 38 | return $res->getBody(); |
||
| 39 | } |
||
| 41 |