Statuses
public struct Statuses
Undocumented
-
Fetches a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Gets a status context.
Parameters
id
The status id.
Return Value
Request for
Context
. -
Gets a card associated with a status.
Parameters
id
The status id.
Return Value
Request for
Card
. -
Gets who reblogged a status.
Declaration
Swift
public static func rebloggedBy(id: String, range: RequestRange = .default) -> Request<[Account]>
Parameters
id
The status id.
range
The bounds used when requesting data from Mastodon.
Return Value
Request for
[Account]
. -
Gets who favourited a status.
Declaration
Swift
public static func favouritedBy(id: String, range: RequestRange = .default) -> Request<[Account]>
Parameters
id
The status id.
range
The bounds used when requesting data from Mastodon.
Return Value
Request for
[Account]
. -
Posts a new status.
Declaration
Swift
public static func create(status: String, replyToID: String? = nil, mediaIDs: [String] = [], sensitive: Bool? = nil, spoilerText: String? = nil, visibility: Visibility = .public) -> Request<Status>
Parameters
status
The text of the status.
replyTo
The local ID of the status you want to reply to.
mediaIDs
The array of media IDs to attach to the status (maximum 4).
sensitive
Marks the status as NSFW.
spoilerText
the text to be shown as a warning before the actual content.
visibility
The status’ visibility.
Return Value
Request for
Status
. -
Deletes a status.
Parameters
id
The status id.
Return Value
Request for
Empty
. -
Reblogs a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Unreblogs a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Favourites a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Unfavourites a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Pins a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Unpins a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Mutes a status.
Parameters
id
The status id.
Return Value
Request for
Status
. -
Unmutes a status.
Parameters
id
The status id.
Return Value
Request for
Status
.