BaseResource
in package
AbstractYes
Table of Contents
Properties
- $autentiqueUrl : string
- Autentique API URL
- $api : Api
- Autentique API
- $resourcesEnum : ResourcesEnum
- Autentique Resources Enum
- $sandbox : string
- Autentique Sandbox Mode
- $token : string
- Autentique API Token
Methods
- __construct() : mixed
- BaseResource constructor.
- getApi() : Api
- Get Autentique API
- getSandbox() : string
- Get Autentique Sandbox Mode
- getToken() : string
- Get Autentique API Token
- setApi() : $this
- Set Api instance customizing the Autentique API URL and Request Timeout
- setSandbox() : $this
- Set Autentique Sandbox Mode but by default it will get from $_ENV["AUTENTIQUE_SANDBOX"]
- setToken() : $this
- Set Autentique API Token but by default it will get from $_ENV["AUTENTIQUE_TOKEN"]
Properties
$autentiqueUrl
Autentique API URL
public
string
$autentiqueUrl
= "https://api.autentique.com.br/v2/graphql"
$api
Autentique API
protected
Api
$api
$resourcesEnum
Autentique Resources Enum
protected
ResourcesEnum
$resourcesEnum
$sandbox
Autentique Sandbox Mode
protected
string
$sandbox
"true"|"false"
$token
Autentique API Token
protected
string
$token
Methods
__construct()
BaseResource constructor.
public
__construct([string|null $token = null ][, int $timeout = 60 ]) : mixed
Parameters
- $token : string|null = null
-
Autentique API Token if not set or null it will get from $_ENV["AUTENTIQUE_TOKEN"]
- $timeout : int = 60
-
Request Timeout in seconds
getApi()
Get Autentique API
public
getApi() : Api
Tags
Return values
ApigetSandbox()
Get Autentique Sandbox Mode
public
getSandbox() : string
Tags
Return values
stringgetToken()
Get Autentique API Token
public
getToken() : string
Tags
Return values
stringsetApi()
Set Api instance customizing the Autentique API URL and Request Timeout
public
setApi(Api $api) : $this
Parameters
- $api : Api
Return values
$thissetSandbox()
Set Autentique Sandbox Mode but by default it will get from $_ENV["AUTENTIQUE_SANDBOX"]
public
setSandbox([string $sandbox = null ]) : $this
Parameters
- $sandbox : string = null
-
"true"|"false"
Return values
$thissetToken()
Set Autentique API Token but by default it will get from $_ENV["AUTENTIQUE_TOKEN"]
public
setToken(string $token) : $this
Parameters
- $token : string
-
Autentique API Token