src/PostTrait.php 1 location
|
@@ 188-190 (lines=3) @@
|
185 |
|
|
186 |
|
if ($response instanceof Response && 200 === $response->getStatusCode()) { |
187 |
|
$body = json_decode($response->getBody(), true); |
188 |
|
if (is_array($body) && count($body) > 0) { |
189 |
|
$ret = array_map('base64_decode', $body); |
190 |
|
} |
191 |
|
} |
192 |
|
|
193 |
|
return $ret; |
src/GetTrait.php 1 location
|
@@ 214-216 (lines=3) @@
|
211 |
|
|
212 |
|
$records = $this->get('/templates/thumbnails', $query); |
213 |
|
|
214 |
|
if (is_array($records) && count($records) > 0) { |
215 |
|
$ret = array_map('base64_decode', $records); |
216 |
|
} |
217 |
|
|
218 |
|
return $ret; |
219 |
|
} |