Overview
TheInitReturnType model represents the response returned by the initGet() method in the BasicApi. It contains the authentication token required for all subsequent API calls.
Properties
Response code indicating the status of the initialization request. A value of
0 typically indicates success.The bearer authentication token to use in subsequent API requests. This token must be included in the
Authorization header of all authenticated API calls.Example JSON
Usage Example
Methods
Getters
getCode(): int- Get the response codegetToken(): string- Get the authentication token
Setters
setCode(int $code): self- Set the response codesetToken(string $token): self- Set the authentication token
Related
- BasicApi - Returns this model from
initGet()method - Authentication - Learn how to use the token for authentication
- Configuration - Configure the SDK with the token