getNoticesWithHttpInfo method

Future<Response> getNoticesWithHttpInfo(
  1. String clientVersion,
  2. String client,
  3. String teamId, {
  4. String? locale,
})

Get notices for logged in user in specified team

Will return appropriate product notices for current user in the team specified by teamId parameter. Minimum server version: 5.26 ##### Permissions Must be logged in.

Note: This method returns the HTTP Response.

Parameters:

  • String clientVersion (required): Version of the client (desktop/mobile/web) that issues the request

  • String client (required): Client type (web/mobile-ios/mobile-android/desktop)

  • String teamId (required): ID of the team

  • String locale: Client locale

Implementation

Future<Response> getNoticesWithHttpInfo(
  String clientVersion,
  String client,
  String teamId, {
  String? locale,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/system/notices/{teamId}'.replaceAll('{teamId}', teamId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  queryParams.addAll(_queryParams('', 'clientVersion', clientVersion));
  if (locale != null) {
    queryParams.addAll(_queryParams('', 'locale', locale));
  }
  queryParams.addAll(_queryParams('', 'client', client));

  const contentTypes = <String>[];

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