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
baseURL
The Mastodon instance URL
accessToken
The user access token used to perform the network requests (optional).
session
The URLSession used to perform the network requests.
-
Performs the network request.
Declaration
Parameters
request
The request to be performed.
completion
The completion block to be called when the request is complete.
result
The request result.