Skip to content

Commit c156e57

Browse files
committed
:octocat:
1 parent 001480e commit c156e57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/spotify.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
$response = $http->sendRequest($request);
5050

5151
if($response->getStatusCode() === 200){
52-
file_put_contents(sprintf('%s/json/%s.json', __DIR__, $artistID), (string)$response->getBody());
52+
$body = $response->getBody();
53+
54+
var_dump($artistID, $body->getSize());
55+
file_put_contents(sprintf('%s/json/%s.json', __DIR__, $artistID), $body->getContents());
5356
}
5457

5558
}

0 commit comments

Comments
 (0)