getChannelMemberWithHttpInfo method

Future<Response> getChannelMemberWithHttpInfo(
  1. String channelId,
  2. String userId
)

Get channel member

Get a channel member. ##### Permissions read_channel permission for the channel.

Note: This method returns the HTTP Response.

Parameters:

  • String channelId (required): Channel GUID

  • String userId (required): User GUID

Implementation

Future<Response> getChannelMemberWithHttpInfo(
  String channelId,
  String userId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/channels/{channel_id}/members/{user_id}'
      .replaceAll('{channel_id}', channelId)
      .replaceAll('{user_id}', userId);

  // 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,
  );
}