|
@@ 104-106 (lines=3) @@
|
| 101 |
|
|
| 102 |
|
$records = $this->get('/templates/thumbnails', $query); |
| 103 |
|
|
| 104 |
|
if (is_array($records) && count($records) > 0) { |
| 105 |
|
$ret = array_map('base64_decode', $records); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
return $ret; |
| 109 |
|
} |
|
@@ 434-436 (lines=3) @@
|
| 431 |
|
if ($response instanceof Response && 200 === $response->getStatusCode()) { |
| 432 |
|
$body = (string) $response->getBody(); |
| 433 |
|
$body = json_decode($body, true); |
| 434 |
|
if (is_array($body) && count($body) > 0) { |
| 435 |
|
$ret = array_map('base64_decode', $body); |
| 436 |
|
} |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
return $ret; |