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
|
@@ 208-210 (lines=3) @@
|
205 |
|
|
206 |
|
$records = $this->get('/templates/thumbnails', $query); |
207 |
|
|
208 |
|
if (is_array($records) && count($records) > 0) { |
209 |
|
$ret = array_map('base64_decode', $records); |
210 |
|
} |
211 |
|
|
212 |
|
return $ret; |
213 |
|
} |