Twitter OAuth class

### Methods

## construct TwitterOAuth object

    __construct($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret)

### Parameters

#### $consumer_key

#### $consumer_secret

#### $oauth_token

#### $oauth_token_secret

## Set API URLS

    accessTokenURL()

## authenticateURL()

    authenticateURL()

## authorizeURL()

    authorizeURL()

## DELETE wrapper for oAuthReqeust.

    delete($url, $parameters)

### Parameters

#### $url

#### $parameters

## GET wrapper for oAuthRequest.

    get($url, $parameters)

### Parameters

#### $url

#### $parameters

## Exchange request token and secret for an access token and secret, to sign API calls.

    getAccessToken($oauth_verifier)

returns | array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham")

### Parameters

#### $oauth_verifier

## Get the authorize URL

    getAuthorizeURL($token, $sign_in_with_twitter)

returns | a string

### Parameters

#### $token

#### $sign_in_with_twitter

## Get the header info to store.

    getHeader($ch, $header)

### Parameters

#### $ch

#### $header

## Get a request_token from Twitter

    getRequestToken($oauth_callback)

returns | a key/value array containing oauth_token and oauth_token_secret

### Parameters

#### $oauth_callback

## One time exchange of username and password for access token and secret.

    getXAuthToken($username, $password)

returns | array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham", "x_auth_expires" => "0")

### Parameters

#### $username

#### $password

## Make an HTTP request

    http($url, $method, $postfields) : \API

### Parameters

#### $url

#### $method

#### $postfields

### Returns

`\API`results

## lastAPICall()

    lastAPICall()

## Debug helpers

    lastStatusCode()

## Format and sign an OAuth / API request

    oAuthRequest($url, $method, $parameters)

### Parameters

#### $url

#### $method

#### $parameters

## POST wrapper for oAuthRequest.

    post($url, $parameters)

### Parameters

#### $url

#### $parameters

## requestTokenURL()

    requestTokenURL()

### Properties

##

    $connecttimeout

##

    $decode_json

##

    $format

##

    $host

##

    $http_code

##

    $http_info

##

    $ssl_verifypeer

##

    $timeout

##

    $url

##

    $useragent