URL_BASE is no longer a constant in Phirehose.php

/**
* @internal Moved from being a const to a variable, because some methods (user and site) need to change it.
*/
protected $URL_BASE = 'https://stream.twitter.com/1.1/statuses/';

so make line 139 of TwitterstreamPublicConsumer.php

$url = $this->URL_BASE . $this->method . '.' . $this->format;

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ArnaudDabouis’s picture

FileSize
599 bytes
themic8’s picture

This patch didn't worked for me.

ArnaudDabouis’s picture

Title: COmpatibility with latest phirehose » Compatibility with latest phirehose
ArnaudDabouis’s picture

ArnaudDabouis’s picture

This one complies with Drupal patching standards and should work.

themic8’s picture

I think the phirehose code has been updated and this patch is no longer valid.

ArnaudDabouis’s picture

Right, this patch has been done to comply with the 0.2.4 version of Phirehose. Feel free to post yours with a more up to date version of the lib.

themic8’s picture

Ah, that is the version you are using. The version of phirehose used is not documented anywhere.

I was unable to authenticate so I have rolled my own custom module for now.

ArnaudDabouis’s picture

Yes, I think the issue you have is with the fact that TwitterstreamPublicConsumer class should inherit OauthPhirehose and not Phirehose. I will write a clean patch when I find the time.

ArnaudDabouis’s picture

themic8’s picture

Yes, In my code I am extending OauthPhirehose.

ArnaudDabouis’s picture