Here, viewServiceAvailability() creates a GET request to /heartbeat
This endpoint returns the current status of the API.
SDKManager.agentService.viewServiceAvailability(new ServiceAvailabilityInterface() {
@Override
public void onValidationError(ErrorObject errorObject) {
}
@Override
public void onServiceAvailabilitySuccess(ServiceAvailability serviceAvailability) {
}
@Override
public void onServiceAvailabilityFailure(GSMAError gsmaError) {
}
});200
{
"serviceStatus": "available"
}