PHP Class OAuth2Client

Afficher le fichier Open project: hybridauth/hybridauth Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
$response

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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

api() public méthode

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

authenticate() public méthode

public authenticate ( $code )

authenticated() public méthode

public authenticated ( )

authorizeUrl() public méthode

public authorizeUrl ( $extras = [] )

delete() public méthode

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

get() public méthode

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

getResponse() public méthode

Return the response object afer the fact
public getResponse ( ) : mixed
Résultat mixed

patch() public méthode

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

post() public méthode

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

refreshToken() public méthode

public refreshToken ( $parameters = [] )

tokenInfo() public méthode

-- 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