TootApplication
public struct TootApplication : Codable, Hashable, Identifiable
Represents an application that interfaces with the REST API to access accounts or posts.
-
Undocumented
Declaration
Swift
public init(name: String, website: String? = nil, vapidKey: String? = nil, redirectUri: String? = nil, clientId: String? = nil, clientSecret: String? = nil, id: String? = nil)
-
The name of your application.
Declaration
Swift
public var name: String
-
The website associated with your application.
Declaration
Swift
public var website: String?
-
Used for Push Streaming API. Returned with POST /api/v1/apps. Equivalent to PushSubscription#server_key
Declaration
Swift
public var vapidKey: String?
-
Undocumented
Declaration
Swift
public var redirectUri: String?
-
Client ID key, to be used for obtaining OAuth tokens
Declaration
Swift
public var clientId: String?
-
Client secret key, to be used for obtaining OAuth tokens
Declaration
Swift
public var clientSecret: String?
-
Declaration
Swift
public var id: String?