getChannelUnreadWithHttpInfo method
Get unread messages
Get the total unread messages and mentions for a channel for a user. ##### Permissions Must be logged in as user and have the read_channel
permission, or have edit_other_usrs
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getChannelUnreadWithHttpInfo(
String userId,
String channelId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/channels/{channel_id}/unread'
.replaceAll('{user_id}', userId)
.replaceAll('{channel_id}', channelId);
// 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,
);
}