getSubscriptionsWithHttpInfo method

Future<Response> getSubscriptionsWithHttpInfo(
  1. String tenantId, [
  2. String? userId
])

Performs an HTTP 'GET /api/v1/subscriptions' operation and returns the Response. Parameters:

Implementation

Future<Response> getSubscriptionsWithHttpInfo(String tenantId, [ String? userId ]) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/subscriptions';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}