Methods are: METHOD_FIREHOSE, METHOD_RETWEET, METHOD_SAMPLE, METHOD_FILTER, METHOD_LINKS, METHOD_USER, METHOD_SITE. Note: the method might cause the use of a different endpoint URL.
Formats are: FORMAT_JSON, FORMAT_XML
public __construct ( string $username, string $password, string $method = Phirehose::METHOD_SAMPLE, string $format = self::FORMAT_JSON, $lang = FALSE ) | ||
$username | string | Any twitter username. When using oAuth, this is the 'oauth_token'. |
$password | string | Any twitter password. When using oAuth this is you oAuth secret. |
$method | string | |
$format | string |