getUserThread method

Future<void> getUserThread(
  1. String userId,
  2. String teamId,
  3. String threadId
)

Get a thread followed by the user

Get a thread Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have edit_other_users permission.

Parameters:

  • String userId (required): The ID of the user. This can also be "me" which will point to the current user.

  • String teamId (required): The ID of the team in which the thread is.

  • String threadId (required): The ID of the thread to follow

Implementation

Future<void> getUserThread(
  String userId,
  String teamId,
  String threadId,
) async {
  final response = await getUserThreadWithHttpInfo(
    userId,
    teamId,
    threadId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}