Statuses
public struct Statuses
Undocumented
-
Fetches a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Gets a status context.
Parameters
idThe status id.
Return Value
Request for
Context. -
Gets a card associated with a status.
Parameters
idThe 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
idThe status id.
rangeThe 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
idThe status id.
rangeThe 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
statusThe text of the status.
replyToThe local ID of the status you want to reply to.
mediaIDsThe array of media IDs to attach to the status (maximum 4).
sensitiveMarks the status as NSFW.
spoilerTextthe text to be shown as a warning before the actual content.
visibilityThe status’ visibility.
Return Value
Request for
Status. -
Deletes a status.
Parameters
idThe status id.
Return Value
Request for
Empty. -
Reblogs a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Unreblogs a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Favourites a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Unfavourites a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Pins a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Unpins a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Mutes a status.
Parameters
idThe status id.
Return Value
Request for
Status. -
Unmutes a status.
Parameters
idThe status id.
Return Value
Request for
Status.
View on GitHub
Install in Dash
Statuses Structure Reference