1<?php 2/** 3 * Horde_Service_Twitter_Request_* classes wrap sending requests to Twitter's 4 * REST API using various authentication mechanisms. 5 * 6 * Copyright 2009-2017 Horde LLC (http://www.horde.org/) 7 * 8 * @author Michael J. Rubinsky <mrubinsk@horde.org> 9 * @license http://www.horde.org/licenses/bsd BSD 10 * @category Horde 11 * @package Service_Twitter 12 */ 13abstract class Horde_Service_Twitter_Request 14{ 15 /** 16 * 17 * @var Horde_Service_Twitter 18 */ 19 protected $_twitter; 20 21 /** 22 * 23 * @var Horde_Controller_Request_Http 24 */ 25 protected $_request; 26 27 public function __construct(Horde_Controller_Request_Http $request) 28 { 29 $this->_request = $request; 30 } 31 32 public function setTwitter(Horde_Service_Twitter $twitter) 33 { 34 $this->_twitter = $twitter; 35 } 36 37 abstract public function get($url, array $params = array()); 38 abstract public function post($url, array $params = array()); 39 40} 41