create

fun Favorites.create(    id: Long,     includeEntities: Boolean? = null,     vararg options: Option): JsonObjectApiAction<Status>

Note: favorites are now known as likes. Favorites (likes) the Tweet specified in the ID parameter as the authenticating user. Returns the favorite Tweet when successful. The process invoked by this method is asynchronous. The immediately returned Tweet object may not indicate the resultant favorited status of the Tweet. A 200 OK response from this method will indicate whether the intended action was successful or not.

Twitter API reference

Receiver

Favorites endpoint instance.

Return

JsonObjectApiAction for Status model.

Parameters

id

The numerical ID of the Tweet to like.

includeEntities

The entities node will be omitted when set to false.

options

Optional. Custom parameters of this request.