OAuth

Extends \MercadoPago\Entity

OAuth class

RestMethod

(resource="/oauth/token", method="create")

package

Default

Methods

getAuthorizationURL

getAuthorizationURL( $app_id,  $redirect_uri) : string
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Arguments

$app_id

$redirect_uri

Response

string

getOAuthCredentials

getOAuthCredentials( $authorization_code,  $redirect_uri) : boolean|mixed
Throws
\Exception

Arguments

$authorization_code

$redirect_uri

Response

boolean|mixed

refreshOAuthCredentials

refreshOAuthCredentials( $refresh_token) : boolean|mixed
Throws
\Exception

Arguments

$refresh_token

Response

boolean|mixed

Properties

client_secret

client_secret : string
Attribute

()

var

Type(s)

string

grant_type

grant_type : string
Attribute

()

var

Type(s)

string

code

code : string
Attribute

()

var

Type(s)

string

redirect_uri

redirect_uri : string
Attribute

()

var

Type(s)

string

access_token

access_token : string
Attribute

()

var

Type(s)

string

public_key

public_key : string
Attribute

()

var

Type(s)

string

refresh_token

refresh_token : string
Attribute

()

var

Type(s)

string

live_mode

live_mode : boolean
Attribute

()

var

Type(s)

boolean

user_id

user_id : integer
Attribute

()

var

Type(s)

integer

token_type

token_type : string
Attribute

()

var

Type(s)

string

expires_in

expires_in : integer
Attribute

()

var

Type(s)

integer

scope

scope : string
Attribute

()

var

Type(s)

string