reportSpamByUserId

fun Users.reportSpamByUserId(    userId: Long,     performBlock: Boolean? = null,     vararg options: Option): JsonObjectApiAction<User>

Report the specified user as a spam account to Twitter. Additionally, optionally performs the equivalent of POST blocks/create on behalf of the authenticated user.

Twitter API reference

Receiver

Users endpoint instance.

Return

JsonObjectApiAction for User model.

Parameters

userId

The ID of the user to report as a spammer. Helpful for disambiguating when a valid user ID is also a valid screen name.

performBlock

Whether the account should be blocked by the authenticated user, as well as being reported for spam.

options

Optional. Custom parameters of this request.