HttpClientInterface
in
Http interface
Tags
Table of Contents
Methods
- getAccountId() : string|null
- Get account ID
- getClientId() : string|null
- Get client ID
- getClientSecret() : string|null
- Get client ID
- getScope() : string|null
- Get scope ID
- getToken() : string|null
- Get token
- getTokenExpires() : string|null
- Get token expires
- getUsername() : string|null
- Get account username
- hasAccountId() : bool
- Has account ID
- hasClientId() : bool
- Has client ID
- hasClientSecret() : bool
- Has client ID
- hasScope() : bool
- Has scope ID
- hasToken() : bool
- Has token
- hasTokenExpires() : bool
- Has token expires
- hasUsername() : bool
- Has account username
- isTokenExpired() : bool
- Check if token is expired
- requestToken() : HttpClientInterface
- Request token
- setAccountId() : HttpClientInterface
- Set account ID
- setClientId() : HttpClientInterface
- Set client ID
- setClientSecret() : HttpClientInterface
- Set client secret
- setScope() : HttpClientInterface
- Set scope
- setToken() : HttpClientInterface
- Set token
- setTokenExpires() : HttpClientInterface
- Set token expires
- setUsername() : HttpClientInterface
- Set account username
- verifyToken() : bool
- Verify token and refresh is expired
Methods
getAccountId()
Get account ID
public
getAccountId() : string|null
Return values
string|nullgetClientId()
Get client ID
public
getClientId() : string|null
Return values
string|nullgetClientSecret()
Get client ID
public
getClientSecret() : string|null
Return values
string|nullgetScope()
Get scope ID
public
getScope() : string|null
Return values
string|nullgetToken()
Get token
public
getToken() : string|null
Return values
string|nullgetTokenExpires()
Get token expires
public
getTokenExpires() : string|null
Return values
string|nullgetUsername()
Get account username
public
getUsername() : string|null
Return values
string|nullhasAccountId()
Has account ID
public
hasAccountId() : bool
Return values
boolhasClientId()
Has client ID
public
hasClientId() : bool
Return values
boolhasClientSecret()
Has client ID
public
hasClientSecret() : bool
Return values
boolhasScope()
Has scope ID
public
hasScope() : bool
Return values
boolhasToken()
Has token
public
hasToken() : bool
Return values
boolhasTokenExpires()
Has token expires
public
hasTokenExpires() : bool
Return values
boolhasUsername()
Has account username
public
hasUsername() : bool
Return values
boolisTokenExpired()
Check if token is expired
public
isTokenExpired() : bool
Return values
boolrequestToken()
Request token
public
requestToken() : HttpClientInterface
Tags
Return values
HttpClientInterfacesetAccountId()
Set account ID
public
setAccountId(string $accountId) : HttpClientInterface
Parameters
- $accountId : string
Return values
HttpClientInterfacesetClientId()
Set client ID
public
setClientId(string $clientId) : HttpClientInterface
Parameters
- $clientId : string
Return values
HttpClientInterfacesetClientSecret()
Set client secret
public
setClientSecret(string $clientSecret) : HttpClientInterface
Parameters
- $clientSecret : string
Return values
HttpClientInterfacesetScope()
Set scope
public
setScope(string $scope) : HttpClientInterface
Parameters
- $scope : string
Return values
HttpClientInterfacesetToken()
Set token
public
setToken(string $token) : HttpClientInterface
Parameters
- $token : string
Return values
HttpClientInterfacesetTokenExpires()
Set token expires
public
setTokenExpires(string $tokenExpires) : HttpClientInterface
Parameters
- $tokenExpires : string
Return values
HttpClientInterfacesetUsername()
Set account username
public
setUsername(string $username) : HttpClientInterface
Parameters
- $username : string
Return values
HttpClientInterfaceverifyToken()
Verify token and refresh is expired
public
verifyToken() : bool