UserService class

Constructors

UserService({required AbstractTwitterClient client})
const

Properties

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

Methods

followersIds({String? userId, String? screenName, int? cursor, int? count, TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform}) Future<PaginatedIds>
Returns a cursored collection of user IDs for every user following the specified user.
followersList({String? userId, String? screenName, int? cursor, int? count, bool? skipStatus, bool? includeUserEntities, String tweetMode = 'extended', TransformResponse<PaginatedUsers> transform = defaultPaginatedUsersTransform}) Future<PaginatedUsers>
Returns a cursored collection of user objects for users following the specified user.
friendshipsCreate({String? userId, String? screenName, bool? follow, String tweetMode = 'extended', TransformResponse<User> transform = defaultUserTransform}) Future<User>
Allows the authenticating user to follow (friend) the user specified in the ID parameter.
friendshipsDestroy({String? userId, String? screenName, String tweetMode = 'extended', TransformResponse<User> transform = defaultUserTransform}) Future<User>
Allows the authenticating user to unfollow the user specified in the ID parameter.
friendshipsIncoming({int? cursor, TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform}) Future<PaginatedIds>
Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
friendshipsLookup({List<String>? screenNames, List<String>? userIds, TransformResponse<List<Friendship>> transform = defaultFriendshipsTransform}) Future<List<Friendship>>
Returns the relationships of the authenticating user to the list of up to 100 screenNames or userIds provided.
friendshipsNoRetweetsIds({TransformResponse<List<int>> transform = defaultIntListTransform}) Future<List<int>>
Returns a collection of userIds that the currently authenticated user does not want to receive retweets from.
friendshipsOutgoing({int? cursor, TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform}) Future<PaginatedIds>
Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
friendshipsShow({String? sourceId, String? sourceScreenName, String? targetId, String? targetScreenName, TransformResponse<Relationship> transform = defaultRelationshipTransform}) Future<Relationship>
Returns detailed information about the relationship between two arbitrary users.
friendshipsUpdate({String? screenName, String? userId, bool? device, bool? retweets, TransformResponse<Relationship> transform = defaultRelationshipTransform}) Future<Relationship>
Enable or disable Retweets and device notifications from the specified user.
friendsIds({String? userId, String? screenName, int? cursor, int? count, TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform}) Future<PaginatedIds>
Returns a cursored collection of user IDs for every user the specified user is following (otherwise known as their "friends").
friendsList({String? userId, String? screenName, int? cursor, int? count, bool? skipStatus, bool? includeUserEntities, String tweetMode = 'extended', TransformResponse<PaginatedUsers> transform = defaultPaginatedUsersTransform}) Future<PaginatedUsers>
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
profileBanner({String? screenName, String? userId, TransformResponse<Banner> transform = defaultBannerTransform}) Future<Banner>
Returns available size variations of the specified user's profile banner.
toString() String
A string representation of this object.
inherited
usersLookup({String? screenName, String? userId, bool? includeEntities, String tweetMode = 'extended', TransformResponse<List<User>> transform = defaultUserListTransform}) Future<List<User>>
Returns fully-hydrated user objects for up to 100 users per request, as specified by comma-separated values passed to the userId and/or screenName parameters.
usersSearch({required String q, int? page, int? count, bool? includeEntities, String tweetMode = 'extended', TransformResponse<List<User>> transform = defaultUserListTransform}) Future<List<User>>
Provides a simple, relevance-based search interface to public user accounts on Twitter. Try querying by topical interest, full name, company name, location, or other criteria. Exact match searches are not supported.
usersShow({String? userId, String? screenName, bool? includeEntities, String tweetMode = 'extended', TransformResponse<User> transform = defaultUserTransform}) Future<User>
Returns a variety of information about the user specified by the required userId or screenName parameter. The author's most recent Tweet will be returned inline when possible.

Operators

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