src/GetTrait.php 1 location
|
@@ 202-204 (lines=3) @@
|
| 199 |
|
|
| 200 |
|
$records = $this->get('/templates/thumbnails', $query); |
| 201 |
|
|
| 202 |
|
if (is_array($records) && count($records) > 0) { |
| 203 |
|
$ret = array_map('base64_decode', $records); |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
return $ret; |
| 207 |
|
} |
src/PostTrait.php 1 location
|
@@ 181-183 (lines=3) @@
|
| 178 |
|
|
| 179 |
|
if ($response instanceof Response && 200 === $response->getStatusCode()) { |
| 180 |
|
$body = json_decode($response->getBody(), true); |
| 181 |
|
if (is_array($body) && count($body) > 0) { |
| 182 |
|
$ret = array_map('base64_decode', $body); |
| 183 |
|
} |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
return $ret; |