From 2d3ed069f743e75c4338ad58eba5a687cd9aba33 Mon Sep 17 00:00:00 2001 From: Samed YILDIRIM Date: Fri, 6 May 2016 11:24:11 +0300 Subject: [PATCH] Endpoint of UserStream API has been changed. Ref: https://dev.twitter.com/streaming/reference/get/user --- lib/Phirehose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Phirehose.php b/lib/Phirehose.php index bcf21db..79908e8 100644 --- a/lib/Phirehose.php +++ b/lib/Phirehose.php @@ -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 }