Class \Scrivo\SocialMedia\TwitterUserTimeline

Get a number of tweets from a user timeline.

Example (using bogus values):

$tut = new TwitterUserTimeline( "xvz1evFS4wEEPTGEFPHBog", //< consumer key "kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw", //< consumer secret "370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb", //< access token "LswwdoUaIvS8ltyTt5jkRh4J50vUPVVHtR2YPi5kE" //< access token secret );

echo $tut->getTweets(array("screen_name"=>"yardinternet", "count"=>20));

Extends \Scrivo\SocialMedia\OAuth .
Defined in: SocialMedia/TwitterUserTimeline.php.


Method summary

Attr. Type Name / Description
private string

getData($url, $param)

Get OAuth autorized data.

public string

getTweets($param)

Get tweets as a HTML unordered list.

 


Methods

private string getData(string $url, array $param)

Get OAuth autorized data.

Parameters:

Type Name Def. Description
string $url

The URL of the service.

array $param

The request parameters given as an array.

Returns:

string Get OAuth autorized data.

Throws:

Exception Type Description
\Scrivo\SocialMedia\Exception If there was a problem with retrieving data from the $url.
public string getTweets(array $param)

Get tweets as a HTML unordered list.

Parameters:

Type Name Def. Description
array $param

The request parameters given as an array for the Twitter url "https://api.twitter.com/1.1/statuses/user_timeline.json".

Returns:

string Get tweets as a HTML unordered list.


Documentation generated by phpDocumentor 2.0.0a12 and ScrivoDocumentor on August 29, 2013