Skip to content

Commit

Permalink
Merge pull request #102 from samedyildirim/master
Browse files Browse the repository at this point in the history
Endpoint of UserStream API has been changed. Ref: https://dev.twitter…
  • Loading branch information
fennb committed May 9, 2016
2 parents 044250a + 2d3ed06 commit 5cb4430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Phirehose.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function __construct($username, $password, $method = Phirehose::METHOD_SA
$this->format = $format;
$this->lang = $lang;
switch($method){
case self::METHOD_USER:$this->URL_BASE = 'https://userstream.twitter.com/2/';break;
case self::METHOD_USER:$this->URL_BASE = 'https://userstream.twitter.com/1.1/';break;
case self::METHOD_SITE:$this->URL_BASE = 'https://sitestream.twitter.com/1.1/';break;
default:break; //Stick to the default
}
Expand Down

0 comments on commit 5cb4430

Please sign in to comment.