code: public CheckTokenResponse checkToken(TokenRequest tokenInfo) throws ApiException {
          ApiResponse<CheckTokenResponse> resp = checkTokenWithHttpInfo(tokenInfo);
          return resp.getData();
      }
docs: Check Token
  (Deprecated) Check Token. See tokenInfo
  @param tokenInfo Token object to be checked (required)
  @return CheckTokenResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body