createByScreenName

fun Blocks.createByScreenName(    screenName: String,     includeEntities: Boolean? = null,     skipStatus: Boolean? = null,     vararg options: Option): JsonObjectApiAction<User>

Blocks the specified user from following the authenticating user. In addition the blocked user will not show in the authenticating users mentions or timeline (unless retweeted by another user). If a follow or friend relationship exists it is destroyed.

The URL pattern /version/block/create/:screen_name_or_user_id.format is still accepted but not recommended. As a sequence of numbers is a valid screen name we recommend using the screen_name or user_id parameter instead.

Twitter API reference

Receiver

Blocks endpoint instance.

Return

JsonObjectApiAction for User model.

See also

Parameters

screenName

Required. The screen name of the potentially blocked user. Helpful for disambiguating when a valid screen name is also a user ID.

includeEntities

The entities node will not be included when set to false.

skipStatus

When set to either true, t or 1 statuses will not be included in the returned user objects.

options

Optional. Custom parameters of this request.