followUser method

Future<Following> followUser(
  1. String id
)

If the user has a private profile, the follow request will require approval (approved_at will be null).

If a user is public, they will be followed immediately (approved_at will have a date).

Note: If this user is already being followed, a 409 HTTP status code will returned.

id - User slug

🔒 OAuth Required

Implementation

Future<Following> followUser(String id) async {
  return await _manager._authenticatedPost<Following>("users/$id/follow");
}