Function egg_mode::user::friends_ids [] [src]

pub fn friends_ids<'a, T: Into<UserID<'a>>>(
    acct: T,
    token: &'a Token
) -> CursorIter<'a, IDCursor>

Lookup the users a given account follows, also called their "friends" within the API, but only return their user IDs.

This function returns an iterator over the User IDs returned by Twitter. This method defaults to returning 500 IDs in a single network call; the maximum is 5000.

Choosing only to load the user IDs instead of the full user information results in a call that can return more accounts per-page, which can be useful if you anticipate having to page through several results and don't need all the user information.