public function newestMentionId()
{
$client = initTwitter();
try {
$mentions = $client->get('statuses/mentions_timeline.json?count=1');
$mentions = json_decode($mentions->getBody(), true);
if (count($mentions)) {
return $mentions[0]['id_str'];
}
return false;
} catch (\GuzzleHttp\Exception\ClientException $e) {
getErrorMessage($e->getResponse()->getStatusCode());
return back();
}
}