public function statusesUpdate($status, $inReplyToStatusId = null, $lat = null, $long = null, $placeId = null, $displayCoordinates = null, $trimUser = null)
{
// build parameters
$parameters['status'] = (string) $status;
$parameters['status'] = utf8_encode($parameters['status']);
if ($inReplyToStatusId != null) {
$parameters['in_reply_to_status_id'] = (string) $inReplyToStatusId;
}
if ($lat != null) {
$parameters['lat'] = (double) $lat;
}
if ($long != null) {
$parameters['long'] = (double) $long;
}
if ($placeId != null) {
$parameters['place_id'] = (string) $placeId;
}
if ($displayCoordinates !== null) {
$parameters['display_coordinates'] = $displayCoordinates ? 'true' : 'false';
}
if ($trimUser) {
$parameters['trim_user'] = $trimUser ? 'true' : 'false';
}
// make the call
return $this->doCall('statuses/update.json', $parameters, true, 'POST');
}