ClientType
public protocol ClientType
Undocumented
-
The user access token used to perform the network requests.
Declaration
Swift
var accessToken: String? { get set } -
Mastodon Client’s initializer.
Declaration
Swift
init(baseURL: String, accessToken: String?, session: URLSession)Parameters
baseURLThe Mastodon instance URL
accessTokenThe user access token used to perform the network requests (optional).
sessionThe URLSession used to perform the network requests.
-
Performs the network request.
Declaration
Parameters
requestThe request to be performed.
completionThe completion block to be called when the request is complete.
resultThe request result.
View on GitHub
Install in Dash
ClientType Protocol Reference