|
@@ 102-104 (lines=3) @@
|
| 99 |
|
|
| 100 |
|
$records = $this->get('/templates/thumbnails', $query); |
| 101 |
|
|
| 102 |
|
if (is_array($records) && count($records) > 0) { |
| 103 |
|
$ret = array_map('base64_decode', $records); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
return $ret; |
| 107 |
|
} |
|
@@ 425-427 (lines=3) @@
|
| 422 |
|
if ($response instanceof Response && 200 === $response->getStatusCode()) { |
| 423 |
|
$body = (string) $response->getBody(); |
| 424 |
|
$body = json_decode($body, true); |
| 425 |
|
if (is_array($body) && count($body) > 0) { |
| 426 |
|
$ret = array_map('base64_decode', $body); |
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
return $ret; |