PHP Class OAuth2Client

ファイルを表示 Open project: hybridauth/hybridauth Class Usage Examples

Public Properties

Property Type Description
$access_token
$access_token_expires_at
$access_token_expires_in
$api_base_url
$authorize_url
$client_id
$client_secret
$curl_authenticate_method
$curl_compressed
$curl_connect_time_out
$curl_header
$curl_proxy
$curl_ssl_verifyhost
$curl_ssl_verifypeer
$curl_time_out
$curl_useragent
$http_code --
$http_info
$redirect_uri
$refresh_token
$sign_token_name --
$token_info_url
$token_url

Protected Properties

Property Type Description
$response

Public Methods

Method Description
__construct ( $client_id = false, $client_secret = false, $redirect_uri = '', $compressed = false ) --
api ( $url, $method = "GET", $parameters = [], $decode_json = true ) Format and sign an oauth for provider api
authenticate ( $code )
authenticated ( )
authorizeUrl ( $extras = [] )
delete ( $url, $parameters = [] ) DELETE wrapper for provider apis request
get ( $url, $parameters = [], $decode_json = true ) GET wrapper for provider apis request
getResponse ( ) : mixed Return the response object afer the fact
patch ( $url, $parameters = [] ) PATCH wrapper for provider apis request
post ( $url, $parameters = [], $decode_json = true ) POST wrapper for provider apis request
refreshToken ( $parameters = [] )
tokenInfo ( $accesstoken ) -- tokens

Private Methods

Method Description
parseRequestResult ( $result )
request ( $url, $params = false, $type = "GET" ) -- utilities

Method Details

__construct() public method

--
public __construct ( $client_id = false, $client_secret = false, $redirect_uri = '', $compressed = false )

api() public method

Format and sign an oauth for provider api
public api ( $url, $method = "GET", $parameters = [], $decode_json = true )

authenticate() public method

public authenticate ( $code )

authenticated() public method

public authenticated ( )

authorizeUrl() public method

public authorizeUrl ( $extras = [] )

delete() public method

DELETE wrapper for provider apis request
public delete ( $url, $parameters = [] )

get() public method

GET wrapper for provider apis request
public get ( $url, $parameters = [], $decode_json = true )

getResponse() public method

Return the response object afer the fact
public getResponse ( ) : mixed
return mixed

patch() public method

PATCH wrapper for provider apis request
public patch ( $url, $parameters = [] )

post() public method

POST wrapper for provider apis request
public post ( $url, $parameters = [], $decode_json = true )

refreshToken() public method

public refreshToken ( $parameters = [] )

tokenInfo() public method

-- tokens
public tokenInfo ( $accesstoken )

Property Details

$access_token public_oe property

public $access_token

$access_token_expires_at public_oe property

public $access_token_expires_at

$access_token_expires_in public_oe property

public $access_token_expires_in

$api_base_url public_oe property

public $api_base_url

$authorize_url public_oe property

public $authorize_url

$client_id public_oe property

public $client_id

$client_secret public_oe property

public $client_secret

$curl_authenticate_method public_oe property

public $curl_authenticate_method

$curl_compressed public_oe property

public $curl_compressed

$curl_connect_time_out public_oe property

public $curl_connect_time_out

$curl_header public_oe property

public $curl_header

$curl_proxy public_oe property

public $curl_proxy

$curl_ssl_verifyhost public_oe property

public $curl_ssl_verifyhost

$curl_ssl_verifypeer public_oe property

public $curl_ssl_verifypeer

$curl_time_out public_oe property

public $curl_time_out

$curl_useragent public_oe property

public $curl_useragent

$http_code public_oe property

--
public $http_code

$http_info public_oe property

public $http_info

$redirect_uri public_oe property

public $redirect_uri

$refresh_token public_oe property

public $refresh_token

$response protected_oe property

protected $response

$sign_token_name public_oe property

--
public $sign_token_name

$token_info_url public_oe property

public $token_info_url

$token_url public_oe property

public $token_url