Function egg_mode::user::follow[][src]

pub async fn follow<T: Into<UserID>>(
    acct: T,
    notifications: bool,
    token: &Token
) -> Result<Response<TwitterUser>>
Expand description

Follow the given account with the authenticated user, and set whether device notifications should be enabled.

Upon success, the future returned by this function yields the user that was just followed, even when following a protected account. In the latter case, this indicates that the follow request was successfully sent.

Calling this with an account the user already follows may return an error, or (“for performance reasons”) may return success without changing any account settings.