listByUserId

fun Favorites.listByUserId(    userId: Long,     count: Int? = null,     sinceId: Long? = null,     maxId: Long? = null,     includeEntities: Boolean? = null,     vararg options: Option): JsonArrayApiAction<Status>

Note: favorites are now known as likes. Returns the 20 most recent Tweets liked by the authenticating or specified user.

Twitter API reference

Receiver

Favorites endpoint instance.

Return

JsonObjectApiAction for Status model.

Parameters

userId

The ID of the user for whom to return results.

count

Specifies the number of records to retrieve. Must be less than or equal to 200; defaults to 20. The value of count is best thought of as a limit to the number of Tweets to return because suspended or deleted content is removed after the count has been applied.

sinceId

Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occurred since the since_id, the since_id will be forced to the oldest ID available.

maxId

Returns results with an ID less than (that is, older than) or equal to the specified ID.

includeEntities

The entities node will be omitted when set to false.

options

Optional. Custom parameters of this request.