startFollowingThread method

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

Start following a thread

Start following 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> startFollowingThread(
  String userId,
  String teamId,
  String threadId,
) async {
  final response = await startFollowingThreadWithHttpInfo(
    userId,
    teamId,
    threadId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}