SunnysideUp\ShareThis\TwitterOAuth
Twitter OAuth class
Synopsis
class TwitterOAuth
{
- // members
- public $http_code;
- public $url;
- public string $host = "https://api.twitter.com/1.1/";
- public integer $timeout = 30;
- public integer $connecttimeout = 30;
- public boolean $ssl_verifypeer = false;
- public string $format = 'json';
- public boolean $decode_json = true;
- public $http_info;
- public string $useragent = 'TwitterOAuth v0.2.0-beta2';
- // methods
- public void accessTokenURL()
- public void authenticateURL()
- public void authorizeURL()
- public void requestTokenURL()
- public void lastStatusCode()
- public void lastAPICall()
- public void __construct()
- public void getRequestToken()
- public void getAuthorizeURL()
- public void getAccessToken()
- public void getXAuthToken()
- public void get()
- public void post()
- public void delete()
- public void oAuthRequest()
- public API http()
- public void getHeader()
Members
public
- $connecttimeout
- $decode_json
- $format
- $host
- $http_code
- $http_info
- $ssl_verifypeer
- $timeout
- $url
- $useragent
Methods
public
- __construct() — construct TwitterOAuth object
- accessTokenURL() — Set API URLS
- authenticateURL()
- delete() — DELETE wrapper for oAuthReqeust.
- get() — GET wrapper for oAuthRequest.
- getAccessToken() — Exchange request token and secret for an access token and secret, to sign API calls.
- getAuthorizeURL() — Get the authorize URL
- getHeader() — Get the header info to store.
- getRequestToken() — Get a request_token from Twitter
- getXAuthToken() — One time exchange of username and password for access token and secret.
- http() — Make an HTTP request
- lastAPICall()
- lastStatusCode() — Debug helpers
- oAuthRequest() — Format and sign an OAuth / API request
- post() — POST wrapper for oAuthRequest.
- requestTokenURL()