Package blue.starry.penicillin.endpoints.favorites

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun Favorites.destroy(    id: Long,     includeEntities: Boolean? = null,     vararg options: Option): JsonObjectApiAction<Status>

Note: favorites are now known as likes. Unfavorites (un-likes) the Tweet specified in the ID parameter as the authenticating user. Returns the un-liked 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.

Link copied to clipboard
fun Favorites.list(    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.

Link copied to clipboard
fun Favorites.listByScreenName(    screenName: String,     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.

Link copied to clipboard
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.

Properties

Link copied to clipboard
val Favorites.list: JsonArrayApiAction<Status>

Shorthand property to Favorites.list.