PHP 클래스 TwitterOAuth, phergie

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

공개 프로퍼티들

프로퍼티 타입 설명
$connecttimeout * Set connect timeout.
$decode_json * Decode returned json data.
$format * Respons format.
$host * Set up the API root URL.
$http_code * Contains the last HTTP status code returned.
$http_info * Contains the last HTTP headers returned.
$ssl_verifypeer * Verify SSL Cert.
$timeout * Set timeout default.
$url * Contains the last API call.
$useragent * Set the useragnet.

공개 메소드들

메소드 설명
__construct ( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL ) construct TwitterOAuth object
accessTokenURL ( ) Set API URLS
authenticateURL ( )
authorizeURL ( )
delete ( $url, $parameters = [] ) DELETE wrapper for oAuthReqeust.
get ( $url, $parameters = [] ) GET wrapper for oAuthRequest.
getAccessToken ( $oauth_verifier ) Exchange request token and secret for an access token and secret, to sign API calls.
getAuthorizeURL ( $token, $sign_in_with_twitter = TRUE ) Get the authorize URL
getHeader ( $ch, $header ) Get the header info to store.
getRequestToken ( $oauth_callback ) Get a request_token from Twitter
getXAuthToken ( $username, $password ) One time exchange of username and password for access token and secret.
http ( $url, $method, $postfields = NULL ) : API Make an HTTP request
lastAPICall ( )
lastStatusCode ( ) Debug helpers
oAuthRequest ( $url, $method, $parameters ) Format and sign an OAuth / API request
post ( $url, $parameters = [] ) POST wrapper for oAuthRequest.
requestTokenURL ( )

메소드 상세

__construct() 공개 메소드

construct TwitterOAuth object
public __construct ( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL )

accessTokenURL() 공개 메소드

Set API URLS
public accessTokenURL ( )

authenticateURL() 공개 메소드

public authenticateURL ( )

authorizeURL() 공개 메소드

public authorizeURL ( )

delete() 공개 메소드

DELETE wrapper for oAuthReqeust.
public delete ( $url, $parameters = [] )

get() 공개 메소드

GET wrapper for oAuthRequest.
public get ( $url, $parameters = [] )

getAccessToken() 공개 메소드

Exchange request token and secret for an access token and secret, to sign API calls.
public getAccessToken ( $oauth_verifier )

getAuthorizeURL() 공개 메소드

Get the authorize URL
public getAuthorizeURL ( $token, $sign_in_with_twitter = TRUE )

getHeader() 공개 메소드

Get the header info to store.
public getHeader ( $ch, $header )

getRequestToken() 공개 메소드

Get a request_token from Twitter
public getRequestToken ( $oauth_callback )

getXAuthToken() 공개 메소드

One time exchange of username and password for access token and secret.
public getXAuthToken ( $username, $password )

http() 공개 메소드

Make an HTTP request
public http ( $url, $method, $postfields = NULL ) : API
리턴 API results

lastAPICall() 공개 메소드

public lastAPICall ( )

lastStatusCode() 공개 메소드

Debug helpers
public lastStatusCode ( )

oAuthRequest() 공개 메소드

Format and sign an OAuth / API request
public oAuthRequest ( $url, $method, $parameters )

post() 공개 메소드

POST wrapper for oAuthRequest.
public post ( $url, $parameters = [] )

requestTokenURL() 공개 메소드

public requestTokenURL ( )

프로퍼티 상세

$connecttimeout 공개적으로 프로퍼티

* Set connect timeout.
public $connecttimeout

$decode_json 공개적으로 프로퍼티

* Decode returned json data.
public $decode_json

$format 공개적으로 프로퍼티

* Respons format.
public $format

$host 공개적으로 프로퍼티

* Set up the API root URL.
public $host

$http_code 공개적으로 프로퍼티

* Contains the last HTTP status code returned.
public $http_code

$http_info 공개적으로 프로퍼티

* Contains the last HTTP headers returned.
public $http_info

$ssl_verifypeer 공개적으로 프로퍼티

* Verify SSL Cert.
public $ssl_verifypeer

$timeout 공개적으로 프로퍼티

* Set timeout default.
public $timeout

$url 공개적으로 프로퍼티

* Contains the last API call.
public $url

$useragent 공개적으로 프로퍼티

* Set the useragnet.
public $useragent