[−][src]Function egg_mode::user::follow
pub fn follow<'a, T: Into<UserID<'a>>>(
acct: T,
notifications: bool,
con_token: &Token,
access_token: &Token
) -> WebResponse<TwitterUser>
Follow the given account with the authenticated user, and set whether device notifications should be enabled.
Upon success, this function returns Ok
with 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.