| @@ 133-140 (lines=8) @@ | ||
| 130 | * |
|
| 131 | * @return array|\Doctrine\Common\Collections\ArrayCollection|object|\Psr\Http\Message\ResponseInterface|string |
|
| 132 | */ |
|
| 133 | public function getFile($taskId, $adReport = true) |
|
| 134 | { |
|
| 135 | $params = [ |
|
| 136 | 'taskId' => $taskId, |
|
| 137 | 'adReport' => $adReport, |
|
| 138 | ]; |
|
| 139 | ||
| 140 | return $this->httpPostJson('report/getFile', $params); |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| @@ 155-162 (lines=8) @@ | ||
| 152 | * |
|
| 153 | * @return array|\Doctrine\Common\Collections\ArrayCollection|object|\Psr\Http\Message\ResponseInterface|string |
|
| 154 | */ |
|
| 155 | public function downloadFile($taskId, $adReport = true) |
|
| 156 | { |
|
| 157 | $params = [ |
|
| 158 | 'taskId' => $taskId, |
|
| 159 | 'adReport' => $adReport, |
|
| 160 | ]; |
|
| 161 | ||
| 162 | return $this->httpPostJson('report/downloadFile', $params); |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||