Lifestream
Class

Lyrixx\Lifestream\Service\TwitterList

class TwitterList extends AbstractService

Fetch twitter list

Constants

FEED_URL

PROFILE_URL

LIST_URL

TWEET_URL

Methods

__construct(string $username, string $list, Client $client = null)

Constructor

StatusInterface[] getStatuses()

Returns a collection of StatusInterface

from AbstractService
setStatusClassname(string $statusClassname)

Sets the status classname.

from AbstractService
string getName()

Returns the service name

from AbstractService
setClient(Client $client)

Set a client

from AbstractService
string getFeedUrl()

Return the full url to the feed.

from AbstractService
string getProfileUrl()

Return the full url to the profile

from AbstractService
setResponse(Response $response)

Set the response

from AbstractService
Request prepareRequest()

Prepare the request

from AbstractService

Details

at line 24
public __construct(string $username, string $list, Client $client = null)

Constructor

Parameters

string $username The twitter username
string $list The twitter list name
Client $client The client

in AbstractService at line 52
public StatusInterface[] getStatuses()

Returns a collection of StatusInterface

Return Value

StatusInterface[] A colection StatusInterface

in AbstractService at line 74
public setStatusClassname(string $statusClassname)

Sets the status classname.

Must implement StatusInterface.

I will be used to create a new StatusInterface with fetched datas

Parameters

string $statusClassname The status classname

in AbstractService at line 82
public string getName()

Returns the service name

Return Value

string The service name

in AbstractService at line 92
public setClient(Client $client)

Set a client

Parameters

Client $client A client

in AbstractService at line 102
public string getFeedUrl()

Return the full url to the feed.

Return Value

string The feed Url

in AbstractService at line 110
public string getProfileUrl()

Return the full url to the profile

Return Value

string The profile url

in AbstractService at line 118
public setResponse(Response $response)

Set the response

Usefull for multicurl

Parameters

Response $response

in AbstractService at line 126
public Request prepareRequest()

Prepare the request

Return Value

Request