Property | Type | Description | |
---|---|---|---|
$boundary | string | ||
$consumerKey | Application consumer key | ||
$consumerSecret | Application consumer secret | ||
$headers | array | ||
$requestBody | string | ||
$token | Request Token | ||
$tokenSecret | Request Secret | ||
$userAgent | Curl User Agent |
Method | Description | |
---|---|---|
__construct ( string $consumerKey, string $consumerSecret, string $token, string $tokenSecret ) | Creates the OAuthRequest object | |
addHeader ( string $header ) | ||
buildHeaders ( $method, $url, $params = [], $multipart = false ) | ||
getConsumerKey ( ) : string | ||
getConsumerSecret ( ) : string | ||
getHeaders ( ) : mixed | ||
getRequestBody ( ) : mixed | ||
getToken ( ) : string | ||
getTokenSecret ( ) : string | ||
getUserAgent ( ) : string | ||
request ( string $method, string $url, array $params = [], boolean $multipart = false ) : |
Performs an authenticated OAuth Request | |
setConsumerKey ( string $consumerKey ) | ||
setConsumerSecret ( string $consumerSecret ) | ||
setHeaders ( mixed $headers ) | ||
setRequestBody ( mixed $requestBody ) | ||
setToken ( string $token ) | ||
setTokenSecret ( string $tokenSecret ) | ||
setUserAgent ( string $userAgent ) |
Method | Description | |
---|---|---|
buildMultipartContent ( $file ) | ||
curlRequest ( string $url, array $params = [], string $method = 'GET', boolean $multipart = false ) : |
Performs a OAuth curl request. | |
encodeParams ( array $params = [], boolean $quoted = false ) : array | Encodes parameters | |
formatQueryString ( array $params ) : string | ||
getOAuthHeader ( string $method, string $url, array $params = [], boolean $multipart = false ) : string | Gets the OAuth signed Authorization headers | |
urlencodeRfc3986 ( $input ) : array | mixed | string |
public buildHeaders ( $method, $url, $params = [], $multipart = false ) |
protected formatQueryString ( array $params ) : string | ||
$params | array | |
return | string |
public request ( string $method, string $url, array $params = [], boolean $multipart = false ) : |
||
$method | string | Request Method (GET / POST) |
$url | string | Request endpoint (e.g: /1.1/account/verify_credentials.json) |
$params | array | Params for the request |
$multipart | boolean | If the request is multipart or not (defaults to false) |
return | Returns an OAuthResponse object |
public setConsumerSecret ( string $consumerSecret ) | ||
$consumerSecret | string |