PHP Class Horde_Service_Twitter_Account, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
显示文件 Open project: horde/horde

Protected Properties

Property Type Description
$_endpoint string Twitter endpoint for account api calls
$_format string The request/response format to use, xml or json.

Public Methods

Method Description
__construct ( Horde_Service_Twitter $twitter )
endSession ( ) : string Ends the current session, invalidates the current auth token if using OAuth.
rateLimitStatus ( ) : string Obtain the current user's (if authenticated) or IP address' (if not authenticated) remaining number of requests left for the hour.
updateDeliveryDevice ( string $device = '' ) : void Update/reset where twitter sends automatic updates to (im/sms etc.
updateProfile ( array $profile ) : string Update user's profile data.
verifyCredentials ( ) : string Used to verify current credentials, and obtain some basic profile information about the current user.

Method Details

__construct() public method

public __construct ( Horde_Service_Twitter $twitter )
$twitter Horde_Service_Twitter

endSession() public method

Ends the current session, invalidates the current auth token if using OAuth.
public endSession ( ) : string
return string

rateLimitStatus() public method

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0rate_limit_status
public rateLimitStatus ( ) : string
return string JSON representation of result object.

updateDeliveryDevice() public method

..)
public updateDeliveryDevice ( string $device = '' ) : void
$device string
return void

updateProfile() public method

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0update_profile
public updateProfile ( array $profile ) : string
$profile array Profile data see API docs for key-values
return string JSON representation of user's updated profile data

verifyCredentials() public method

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0verify_credentials
public verifyCredentials ( ) : string
return string JSON reprentation of profile.

Property Details

$_endpoint protected_oe property

Twitter endpoint for account api calls
protected string $_endpoint
return string

$_format protected_oe property

The request/response format to use, xml or json.
protected string $_format
return string