Package blue.starry.penicillin.endpoints.collections

Types

Link copied to clipboard

Order Tweets chronologically or in the order they are added to a Collection.

Functions

Link copied to clipboard
fun Collections.create(    name: String,     description: String? = null,     url: String? = null,     timelineOrder: CollectionTimelineOrder = CollectionTimelineOrder.Default,     vararg options: Option): JsonObjectApiAction<Collection.Model>

Create a Collection owned by the currently authenticated user. The API endpoint may refuse to complete the request if the authenticated user has exceeded the total number of allowed collections for their account.

Link copied to clipboard
fun Collections.delete(id: String, vararg options: Option): JsonObjectApiAction<Collection.DestroyResult>

Permanently delete a Collection owned by the currently authenticated user.

Link copied to clipboard
fun Collections.list(    tweetId: Long? = null,     count: Int? = null,     cursor: String? = null,     vararg options: Option): JsonObjectApiAction<Collection.List>

Find Collections created by a specific user or containing a specific curated Tweet. Results are organized in a cursored collection.

Link copied to clipboard
fun Collections.listByScreenName(    screenName: String,     tweetId: Long? = null,     count: Int? = null,     cursor: String? = null,     vararg options: Option): JsonObjectApiAction<Collection.List>

Find Collections created by a specific user or containing a specific curated Tweet. Results are organized in a cursored collection.

Link copied to clipboard
fun Collections.listByUserId(    userId: Long,     tweetId: Long? = null,     count: Int? = null,     cursor: String? = null,     vararg options: Option): JsonObjectApiAction<Collection.List>

Find Collections created by a specific user or containing a specific curated Tweet. Results are organized in a cursored collection.

Link copied to clipboard
fun Collections.show(id: String, vararg options: Option): JsonObjectApiAction<Collection.Model>

Retrieve information associated with a specific Collection.

Link copied to clipboard
fun Collections.update(    id: String,     name: String? = null,     description: String? = null,     url: String? = null,     vararg options: Option): JsonObjectApiAction<Collection.Model>

Update information concerning a Collection owned by the currently authenticated user. Partial updates are not currently supported: please provide name, description, and url whenever using this method. Omitted description or url parameters will be treated as if an empty string was passed, overwriting any previously stored value for the Collection.

Properties

Link copied to clipboard
val Collections.list: JsonObjectApiAction<Collection.List>

Shorthand property to Collections.list.