PHP 클래스 TwitterOAuth\Auth\AuthAbstract

파일 보기 프로젝트 열기: ricardoper/twitteroauth 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$call
$credentials
$curl
$getParams
$headers
$method
$postParams
$serializer
$withMedia

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

Authentication Base
public __construct ( array $credentials, TwitterOAuth\Serializer\SerializerInterface $serializer )
$credentials array Credentials Array
$serializer TwitterOAuth\Serializer\SerializerInterface Output Serializer

buildMultipart() 보호된 메소드

Build a multipart message
protected buildMultipart ( string $mimeBoundary, string $filename ) : string
$mimeBoundary string MIME boundary ID
$filename string File location
리턴 string Multipart message

findExceptions() 보호된 메소드

Processing Twitter Exceptions in case of error
protected findExceptions ( array $response ) : string
$response array Raw response
리턴 string

get() 공개 메소드

Send a GET call to Twitter API via OAuth
public get ( string $call, array $getParams = null ) : mixed
$call string Twitter resource string
$getParams array GET parameters to send
리턴 mixed Output with selected format

getBinaryFile() 보호된 메소드

Get binary data of a file
protected getBinaryFile ( string $filename ) : string
$filename string File location
리턴 string

getConsumerKey() 공개 메소드

Gets the Twitter API key
public getConsumerKey ( ) : null | string
리턴 null | string

getConsumerSecret() 공개 메소드

Gets the Twitter API secret
public getConsumerSecret ( ) : null | string
리턴 null | string

getCurl() 공개 메소드

Get cURL Instance
public getCurl ( )

getHeaders() 공개 메소드

Get response headers
public getHeaders ( null $key = null ) : array | string | false
$key null
리턴 array | string | false

getResponse() 보호된 메소드

Returns raw response body
protected getResponse ( ) : array
리턴 array

getSerializer() 공개 메소드

Gets Serializer
public getSerializer ( ) : null | TwitterOAuth\Serializer\SerializerInterface
리턴 null | TwitterOAuth\Serializer\SerializerInterface

getUrl() 보호된 메소드

Getting full URL from a Twitter resource
protected getUrl ( ) : string
리턴 string Full URL

resetCallState() 보호된 메소드

Reset Call State
protected resetCallState ( )

supportedMimes() 보호된 메소드

Twitter supported MIME types for media upload
protected supportedMimes ( string $mime ) : mixed
$mime string File extension
리턴 mixed MIME type

validateCredentials() 보호된 메소드

Validate Credentials Array
protected validateCredentials ( $credentials )
$credentials

프로퍼티 상세

$call 보호되어 있는 프로퍼티

protected $call

$credentials 보호되어 있는 프로퍼티

protected $credentials

$curl 보호되어 있는 프로퍼티

protected $curl

$getParams 보호되어 있는 프로퍼티

protected $getParams

$headers 보호되어 있는 프로퍼티

protected $headers

$method 보호되어 있는 프로퍼티

protected $method

$postParams 보호되어 있는 프로퍼티

protected $postParams

$serializer 보호되어 있는 프로퍼티

protected $serializer

$withMedia 보호되어 있는 프로퍼티

protected $withMedia