friendshipsIncoming method
Future<PaginatedIds>
friendshipsIncoming({
- int? cursor,
- TransformResponse<
PaginatedIds> transform = defaultPaginatedIdsTransform,
Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
cursor
: Causes the results to be broken into pages. If no cursor is
provided, a value of -1
will be assumed, which is the first "page."
The response from the API will include a previousCursor
and nextCursor
to allow paging back and forth. See Using cursors to navigate collections
for more information.
transform
: Can be used to parse the request. By default, the response is
parsed in an isolate.
Implementation
Future<PaginatedIds> friendshipsIncoming({
int? cursor,
TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform,
}) async {
final params = <String, String>{}..addParameter('cursor', cursor);
return client
.get(
Uri.https('api.twitter.com', '1.1/friendships/incoming.json', params),
)
.then(transform);
}