/usr/share/php/Horde/Service/Twitter/Request.php is in php-horde-service-twitter 2.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <?php
/**
* Horde_Service_Twitter_Request_* classes wrap sending requests to Twitter's
* REST API using various authentication mechanisms.
*
* Copyright 2009-2013 Horde LLC (http://www.horde.org/)
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
* @package Service_Twitter
*/
abstract class Horde_Service_Twitter_Request
{
/**
*
* @var Horde_Service_Twitter
*/
protected $_twitter;
/**
*
* @var Horde_Controller_Request_Http
*/
protected $_request;
public function __construct(Horde_Controller_Request_Http $request)
{
$this->_request = $request;
}
public function setTwitter(Horde_Service_Twitter $twitter)
{
$this->_twitter = $twitter;
}
abstract public function get($url, array $params = array());
abstract public function post($url, array $params = array());
}
|