public statusesMentionsTimeline ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $contributorDetails = null, bool[optional] $includeEntities = null ) : array | ||
$count | int[optional] | |
$sinceId | string[optional] | |
$maxId | string[optional] | |
$trimUser | bool[optional] | |
$contributorDetails | bool[optional] | |
$includeEntities | bool[optional] | |
return | array |
public function statusesMentionsTimeline($count = null, $sinceId = null, $maxId = null, $trimUser = null, $contributorDetails = null, $includeEntities = null)
{
// build parameters
$parameters = null;
$parameters['include_rts'] = 'true';
if ($count != null) {
$parameters['count'] = (int) $count;
}
if ($sinceId != null) {
$parameters['since_id'] = (string) $sinceId;
}
if ($maxId != null) {
$parameters['max_id'] = (string) $maxId;
}
if ($trimUser !== null) {
$parameters['trim_user'] = $trimUser ? 'true' : 'false';
}
if ($contributorDetails !== null) {
$parameters['contributor_details'] = $contributorDetails ? 'true' : 'false';
}
if ($includeEntities !== null) {
$parameters['include_entities'] = $includeEntities ? 'true' : 'false';
}
// make the call
return $this->doCall('statuses/mentions_timeline.json', $parameters, true);
}
/** * Tests Twitter->statusesMentionsTimeline() */ public function testStatusesMentionsTimeline() { $response = $this->twitter->statusesMentionsTimeline(2); $this->assertEquals(count($response), 2); foreach ($response as $row) { $this->isTweet($row); } }