DomainBlocks
public struct DomainBlocks
Undocumented
-
Fetches a user’s blocked domains.
Declaration
Swift
public static func all(range: RequestRange = .default) -> Request<[String]>
Parameters
range
The bounds used when requesting data from Mastodon.
Return Value
Request for
[String]
. -
Blocks a domain.
Parameters
domain
The domain to block.
Return Value
Request for
Empty
. -
Unblocks a domain.
Parameters
domain
The domain to unblock.
Return Value
Request for
Empty
.