createFollow abstract method

Future<MastodonResponse<Relationship>> createFollow({
  1. required String accountId,
  2. bool? receiveReblogs,
  3. bool? receiveNotifications,
  4. List<Language>? filteringLanguages,
})

Follow the given account. Can also be used to update whether to show reblogs or enable notifications.

Parameters

  • accountId: The ID of the Account in the database.

  • receiveReblogs: Receive this account’s reblogs in home timeline? Defaults to true.

  • receiveNotifications: Receive notifications when this account posts a status? Defaults to false.

  • filteringLanguages: Filter received statuses for these languages. If not provided, you will receive this account’s posts in all languages.

Endpoint Url

  • POST /api/v1/accounts/:id/follow HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • read:lists

Reference

Implementation

Future<MastodonResponse<Relationship>> createFollow({
  required String accountId,
  bool? receiveReblogs,
  bool? receiveNotifications,
  List<Language>? filteringLanguages,
});