friendshipsOutgoing method
Future<PaginatedIds>
friendshipsOutgoing({
- int? cursor,
- TransformResponse<
PaginatedIds> transform = defaultPaginatedIdsTransform,
Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
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> friendshipsOutgoing({
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/outgoing.json', params))
.then(transform);
}