PHP 클래스 WeiboOAuth

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

공개 프로퍼티들

프로퍼티 타입 설명
$connecttimeout Set connect timeout.
$decode_json Decode returned json data.
$format Response 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.

공개 메소드들

메소드 설명
__construct ( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL ) construct WeiboOAuth object
accessTokenURL ( )
authenticateURL ( )
delete ( $url, $parameters = [] ) : mixed DELTE wrapper for oAuthReqeust.
get ( $url, $parameters = [] ) : mixed GET wrapper for oAuthRequest.
getAccessToken ( $oauth_verifier = FALSE, $oauth_token = false ) : array Exchange the request token and secret for an access token and secret, to sign API calls.
getAuthorizeURL ( $token ) *function getAuthorizeURL($token, $url) { if (is_array($token)) { $token = $token['oauth_token']; }
getHeader ( $ch, $header ) : integer Get the header info to store.
getRequestToken ( $oauth_callback = NULL ) : array Get a request_token from Weibo
http ( $url, $method, $postfields = NULL, $multi = false ) : string Make an HTTP request
lastAPICall ( )
lastStatusCode ( )
oAuthRequest ( $url, $method, $parameters, $multi = false ) : string Format and sign an OAuth / API request
post ( $url, $parameters = [], $multi = false ) : mixed POST wrapper for oAuthRequest.
requestTokenURL ( )
request_with_uid ( $url, $uid_or_name = null, $page = false, $count = false, $cursor = false, $post = false )

메소드 상세

__construct() 공개 메소드

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

accessTokenURL() 공개 메소드

public accessTokenURL ( )

authenticateURL() 공개 메소드

public authenticateURL ( )

delete() 공개 메소드

DELTE wrapper for oAuthReqeust.
public delete ( $url, $parameters = [] ) : mixed
리턴 mixed

get() 공개 메소드

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

getAccessToken() 공개 메소드

Exchange the request token and secret for an access token and secret, to sign API calls.
public getAccessToken ( $oauth_verifier = FALSE, $oauth_token = false ) : array
리턴 array array("oauth_token" => the access token, "oauth_token_secret" => the access secret)

getAuthorizeURL() 공개 메소드

return $this->authorizeURL() . "?oauth_token={$token}&oauth_callback=" . urlencode($url); }
public getAuthorizeURL ( $token )

getHeader() 공개 메소드

Get the header info to store.
public getHeader ( $ch, $header ) : integer
리턴 integer

getRequestToken() 공개 메소드

Get a request_token from Weibo
public getRequestToken ( $oauth_callback = NULL ) : array
리턴 array a key/value array containing oauth_token and oauth_token_secret

http() 공개 메소드

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

lastAPICall() 공개 메소드

public lastAPICall ( )

lastStatusCode() 공개 메소드

public lastStatusCode ( )

oAuthRequest() 공개 메소드

Format and sign an OAuth / API request
public oAuthRequest ( $url, $method, $parameters, $multi = false ) : string
리턴 string

post() 공개 메소드

POST wrapper for oAuthRequest.
public post ( $url, $parameters = [], $multi = false ) : mixed
리턴 mixed

requestTokenURL() 공개 메소드

public requestTokenURL ( )

request_with_uid() 공개 메소드

public request_with_uid ( $url, $uid_or_name = null, $page = false, $count = false, $cursor = false, $post = false )

프로퍼티 상세

$connecttimeout 공개적으로 프로퍼티

Set connect timeout.
public $connecttimeout

$decode_json 공개적으로 프로퍼티

Decode returned json data.
public $decode_json

$format 공개적으로 프로퍼티

Response 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