我想读写用户的Yahoo Fantasy Sports数据。
我正在尝试通过 Yahoo API 访问使用 OAuthSwift .
我的 OAuthSwift 对象如下所示:
let oauth2Swift = OAuth2Swift(
consumerKey: "*****",
consumerSecret: "*****",
authorizeUrl: "https://api.login.yahoo.com/oauth2/request_auth",
accessTokenUrl: "https://api.login.yahoo.com/oauth2/get_token",
responseType: "code"
)
我是这样执行的:
self.oauth2Swift.authorize(withCallbackURL: "com.me.myapp", scope: "fspt-w", state: "", success: { (cred, response, params) in
print("✅ success")
}) { (error) in
print("
|