destroyByUserId

fun Friendships.destroyByUserId(userId: Long, vararg options: Option): JsonObjectApiAction<User>

Allows the authenticating user to unfollow the user specified in the ID parameter. Returns the unfollowed user when successful. Returns a string describing the failure condition when unsuccessful. Actions taken in this method are asynchronous. Changes will be eventually consistent.

Twitter API reference

Receiver

Friendships endpoint instance.

Return

JsonObjectApiAction for User model.

See also

Parameters

userId

The ID of the user to unfollow.

options

Optional. Custom parameters of this request.