Property | Type | Description | |
---|---|---|---|
$call | |||
$credentials | |||
$curl | |||
$getParams | |||
$headers | |||
$method | |||
$postParams | |||
$serializer | |||
$withMedia |
Method | Description | |
---|---|---|
__construct ( array $credentials, TwitterOAuth\Serializer\SerializerInterface $serializer ) | Authentication Base | |
get ( string $call, array $getParams = null ) : mixed | Send a GET call to Twitter API via OAuth | |
getConsumerKey ( ) : null | string | Gets the Twitter API key | |
getConsumerSecret ( ) : null | string | Gets the Twitter API secret | |
getCurl ( ) | Get cURL Instance | |
getHeaders ( null $key = null ) : array | string | false | Get response headers | |
getSerializer ( ) : null | TwitterOAuth\Serializer\SerializerInterface | Gets Serializer |
Method | Description | |
---|---|---|
buildMultipart ( string $mimeBoundary, string $filename ) : string | Build a multipart message | |
findExceptions ( array $response ) : string | Processing Twitter Exceptions in case of error | |
getBinaryFile ( string $filename ) : string | Get binary data of a file | |
getResponse ( ) : array | Returns raw response body | |
getUrl ( ) : string | Getting full URL from a Twitter resource | |
resetCallState ( ) | Reset Call State | |
supportedMimes ( string $mime ) : mixed | Twitter supported MIME types for media upload | |
validateCredentials ( $credentials ) | Validate Credentials Array |
public __construct ( array $credentials, TwitterOAuth\Serializer\SerializerInterface $serializer ) | ||
$credentials | array | Credentials Array |
$serializer | TwitterOAuth\Serializer\SerializerInterface | Output Serializer |
protected findExceptions ( array $response ) : string | ||
$response | array | Raw response |
return | string |
protected getBinaryFile ( string $filename ) : string | ||
$filename | string | File location |
return | string |
public getConsumerKey ( ) : null | string | ||
return | null | string |
public getConsumerSecret ( ) : null | string | ||
return | null | string |
protected getResponse ( ) : array | ||
return | array |
public getSerializer ( ) : null | TwitterOAuth\Serializer\SerializerInterface | ||
return | null | TwitterOAuth\Serializer\SerializerInterface |
protected supportedMimes ( string $mime ) : mixed | ||
$mime | string | File extension |
return | mixed | MIME type |
protected validateCredentials ( $credentials ) | ||
$credentials |