getTeamUnreadWithHttpInfo method

Future<Response> getTeamUnreadWithHttpInfo(
  1. String userId,
  2. String teamId
)

Get unreads for a team

Get the unread mention and message counts for a team for the specified user. ##### Permissions Must be the user or have edit_other_users permission and have view_team permission for the team.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): User GUID

  • String teamId (required): Team GUID

Implementation

Future<Response> getTeamUnreadWithHttpInfo(
  String userId,
  String teamId,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/users/{user_id}/teams/{team_id}/unread'.replaceAll('{user_id}', userId).replaceAll('{team_id}', teamId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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