mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-14 12:31:00 +00:00
18 lines
456 B
Swift
18 lines
456 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import MastodonAPI
|
|
import Stubbing
|
|
|
|
extension AccessTokenEndpoint: Stubbing {
|
|
public func dataString(url: URL) -> String? {
|
|
"""
|
|
{
|
|
"access_token": "ACCESS_TOKEN_STUB_VALUE",
|
|
"token_type": "Bearer",
|
|
"scope": "ACCESS_TOKEN_STUB_VALUE_SCOPES",
|
|
"created_at": "\(Int(Date().timeIntervalSince1970))"
|
|
}
|
|
"""
|
|
}
|
|
}
|