AccountsV1Service class abstract

Constructors

AccountsV1Service({required String instance, required ClientContext context})
Returns the new instance of AccountsV1Service.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAccount({required String username, required String email, required String password, required bool agreement, required Locale locale, String? reason}) Future<MastodonResponse<Token>>
Creates a user and account records. Returns an account access token for the app that initiated the request. The app should save this token for later, and should wait for the user to confirm their account by clicking a link in their email inbox.
createBlock({required String accountId}) Future<MastodonResponse<Relationship>>
Block the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline)
createBlockedDomain({required String domainName}) Future<MastodonResponse<Empty>>
Block a domain to:
createFeaturedProfile({required String accountId}) Future<MastodonResponse<Relationship>>
Add the given account to the user’s featured profiles. (Featured profiles are currently shown on the user’s own public profile.)
createFeaturedTag({required String tagName}) Future<MastodonResponse<FeaturedTag>>
Promote a hashtag on your profile.
createFollow({required String accountId, bool? receiveReblogs, bool? receiveNotifications, List<Language>? filteringLanguages}) Future<MastodonResponse<Relationship>>
Follow the given account. Can also be used to update whether to show reblogs or enable notifications.
createFollower({required String accountId}) Future<MastodonResponse<Relationship>>
Accept follow request.
createFollowingTag({required String tagId}) Future<MastodonResponse<Tag>>
Follow a hashtag.
createMute({required String accountId, bool? includeNotifications, Duration? duration}) Future<MastodonResponse<Relationship>>
Mute the given account. Clients should filter statuses and notifications from this account, if received (e.g. due to a boost in the Home timeline).
createReport({required String accountId, String? reason, bool? forward, ReportCategory? category, List<String>? statusIds, List<String>? ruleIds}) Future<MastodonResponse<Report>>
Report problematic users to your moderators.
destroyBlock({required String accountId}) Future<MastodonResponse<Relationship>>
Unblock the given account.
destroyBlockedDomain({required String domainName}) Future<MastodonResponse<Empty>>
Remove a domain block, if it exists in the user’s array of blocked domains.
destroyFeaturedProfile({required String accountId}) Future<MastodonResponse<Relationship>>
Remove the given account from the user’s featured profiles.
destroyFeaturedTag({required String tagId}) Future<MastodonResponse<Empty>>
Stop promoting a hashtag on your profile.
destroyFollow({required String accountId}) Future<MastodonResponse<Relationship>>
Unfollow the given account.
destroyFollower({required String accountId}) Future<MastodonResponse<Relationship>>
Remove the given account from your followers.
destroyFollowingTag({required String tagId}) Future<MastodonResponse<Tag>>
Unfollow a hashtag.
destroyFollowRequest({required String accountId}) Future<MastodonResponse<Relationship>>
Reject follow request.
destroyFollowSuggestion({required String accountId}) Future<MastodonResponse<Empty>>
Remove an account from follow suggestions.
destroyMute({required String accountId}) Future<MastodonResponse<Relationship>>
Unmute the given account.
lookupAccount({required String accountId}) Future<MastodonResponse<Account>>
View information about a profile.
lookupAccountFromWebFingerAddress({required String accountIdentifier, bool? skipWebFinger}) Future<MastodonResponse<Account>>
Quickly lookup a username to see if it is available, or quickly resolve a Web Finger address to an account ID.
lookupBlockedAccounts({int? limit}) Future<MastodonResponse<List<Account>>>
View your blocks.
lookupBlockedDomains({int? limit}) Future<MastodonResponse<List<String>>>
View domains the user has blocked.
lookupBookmarkedStatuses({int? limit}) Future<MastodonResponse<List<Status>>>
Statuses the user has bookmarked.
lookupById({required String accountId}) Future<MastodonResponse<Account>>
lookupContainedLists({required String accountId}) Future<MastodonResponse<List<UserList>>>
User lists that you have added this account to.
lookupFamiliarFollowers({required List<String> accountIds}) Future<MastodonResponse<List<FamiliarFollower>>>
Obtain a list of all accounts that follow a given account, filtered for accounts you follow.
lookupFavouritedStatuses({int? limit}) Future<MastodonResponse<List<Status>>>
Statuses the user has favourited.
lookupFeaturedProfiles({int? limit}) Future<MastodonResponse<List<Account>>>
Accounts that the user is currently featuring on their profile.
lookupFeaturedTags({required String accountId}) Future<MastodonResponse<List<FeaturedTag>>>
Tags featured by this account.
lookupFollowedTags({int? limit}) Future<MastodonResponse<List<Tag>>>
View all followed tags.
lookupFollowers({required String accountId, int? limit}) Future<MastodonResponse<List<Account>>>
Accounts which follow the given account, if network is not hidden by the account owner.
lookupFollowings({required String accountId, int? limit}) Future<MastodonResponse<List<Account>>>
Accounts which follow the given account, if network is not hidden by the account owner.
lookupFollowRequests({int? limit}) Future<MastodonResponse<List<Account>>>
View pending follow requests.
lookupMutedAccounts({int? limit}) Future<MastodonResponse<List<Account>>>
Accounts the user has muted.
lookupOwnedFeaturedTags() Future<MastodonResponse<List<FeaturedTag>>>
List all hashtags featured on your profile.
lookupPreferences() Future<MastodonResponse<AccountPreferences>>
Preferences defined by the user in their account settings.
lookupRelationships({required List<String> accountIds}) Future<MastodonResponse<List<Relationship>>>
Find out whether a given account is followed, blocked, muted, etc.
lookupStatuses({required String accountId, String? maxStatusId, String? minStatusId, String? sinceStatusId, String? tagged, int? limit, bool? excludeReblogs}) Future<MastodonResponse<List<Status>>>
Statuses posted to the given account.
lookupSuggestedTags() Future<MastodonResponse<List<Tag>>>
Shows up to 10 recently-used tags.
lookupTag({required String tagId}) Future<MastodonResponse<Tag>>
Show a hashtag and its associated information
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchAccounts({required String query, int? limit, bool? resolveWithWebFinger, bool? onlyFollowings}) Future<MastodonResponse<List<Account>>>
Search for matching accounts by username or display name.
toString() String
A string representation of this object.
inherited
updateAccount({String? displayName, String? bio, bool? discoverable, bool? bot, bool? locked, AccountDefaultSettingsParam? defaultSettings, List<AccountProfileMetaParam>? profileMeta}) Future<MastodonResponse<Account>>
Update the user’s display and preferences.
updateAvatarImage({required File file}) Future<MastodonResponse<Account>>
Update the user’s avatar image.
updateHeaderImage({required File file}) Future<MastodonResponse<Account>>
Update the user’s header image.
updatePrivateComment({required String accountId, String text = ''}) Future<MastodonResponse<Relationship>>
Sets a private note on a user.
verifyAccountCredentials({String? bearerToken}) Future<MastodonResponse<Account>>
Test to make sure that the user token works.

Operators

operator ==(Object other) bool
The equality operator.
inherited