Overview

Packages

  • Service
    • Twitter

Classes

  • Horde_Service_Twitter
  • Horde_Service_Twitter_Account
  • Horde_Service_Twitter_Auth
  • Horde_Service_Twitter_Auth_Oauth
  • Horde_Service_Twitter_Exception
  • Horde_Service_Twitter_Request
  • Horde_Service_Twitter_Request_Oauth
  • Horde_Service_Twitter_Statuses
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Service_Twitter

Horde_Service_Twitter class abstracts communication with Twitter's rest interface.

Copyright 2009-2012 Horde LLC (http://www.horde.org/)

Package: Service\Twitter
Category: Horde
License: BSD
Author: Michael J. Rubinsky mrubinsk@horde.org
Located at Horde/Service/Twitter.php
Methods summary
public
# __construct( Horde_Service_Twitter_Auth $auth, Horde_Service_Twitter_Request $request )

Constructor.

Constructor.

Parameters

$auth
An authentication object
$request
A request object.
public static Horde_Service_Twitter
# create( array $params )

Factory method to easily build a working Twitter client object.

Factory method to easily build a working Twitter client object.

Parameters

$params
<p>Configuration parameters, with the following keys: - 'oauth' (required): - 'consumer_key' (required): The application's consumer key - 'consumer_secret' (required): The application's consumer secret - 'access_token' (optional): The user's access token - 'access_token_secret' (optional): The user's access token secret. - 'http' (optional): any configuration parameters for Horde_Http_Client, e.g. proxy settings.</p>

Returns

Horde_Service_Twitter

A twitter object that can be used immediately to update and receive statuses etc.

public
# setCache( Horde_Cache $cache )
public
# setLogger( Horde_Log_Logger $logger )
public
# setHttpClient( Horde_Http_Client $client )

Set the http client.

Set the http client.

Parameters

$client
The http client
public Horde_Http_Client
# getHttpClient( )

Get the http client.

Get the http client.

Returns

Horde_Http_Client
public Horde_Service_Twitter_*
# __get( string $value )

Lazy load the twitter classes.

Lazy load the twitter classes.

Parameters

$value
The lowercase representation of the subclass.

Returns

Horde_Service_Twitter_*
object.

Throws

Horde_Service_Twitter_Exception
Constants summary
string REQUEST_TOKEN_URL
# 'https://api.twitter.com/oauth/request_token'
string USER_AUTHORIZE_URL
# 'https://api.twitter.com/oauth/authorize'
string ACCESS_TOKEN_URL
# 'https://api.twitter.com/oauth/access_token'
Magic properties summary
public Horde_Service_Twitter_Account $account

The twitter account object for calling account methods.

public Horde_Service_Twitter_Statuses $statuses

The twitter status object for updating and retrieving user statuses.

public Horde_Service_Twitter_Auth $auth

The twitter authentication object.

public Horde_Service_Twitter_Request $request

The twitter request object that wraps sending requests to Twitter's REST API.

public Horde_Cache $responseCache

The cache object.

public integer $cacheLifetime

The default cache lifetime.

API documentation generated by ApiGen