getClientConfigWithHttpInfo method

Future<Response> getClientConfigWithHttpInfo(
  1. String format
)

Get client configuration

Get a subset of the server configuration needed by the client. ##### Permissions No permission required.

Note: This method returns the HTTP Response.

Parameters:

  • String format (required): Must be old, other formats not implemented yet

Implementation

Future<Response> getClientConfigWithHttpInfo(
  String format,
) async {
  // ignore: prefer_const_declarations
  final path = r'/config/client';

  // ignore: prefer_final_locals
  Object? postBody;

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

  queryParams.addAll(_queryParams('', 'format', format));

  const contentTypes = <String>[];

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