]);
$response = $client->post($url, ['auth' => 'oauth', $type => $data]);
- $body = $response->getBodyString()->getContents();
+ $body = $response->getBody()->getContents();
$status = [
'code' => $response->getStatusCode(),
$status = [
'code' => $response->getStatusCode(),
'reason' => $response->getReasonPhrase(),
- 'content' => $response->getBodyString()->getContents()
+ 'content' => $response->getBody()->getContents()
];
DI::pConfig()->set(1, 'twitter', 'last_status', $status);
Logger::info('Test successful', ['uid' => $uid]);