使用OAuth1.0和OAuthSwift进行身份验证失败
var oauthswift = OAuth1Swift(
consumerKey: consumerKey!,
consumerSecret: consumerSecret!
)
let json: [String: Any] = ["user": "xyz",
"pass": "456456"]
let jsonData = try? JSONSerialization.data(withJSONObject: json)
oauthswift.client.request("myurl", method: .GET, body: jsonData, success: { (OAuthSwiftResponse) in
<#code#>
}) { (OAuthSwiftError) in
<#code#>
}
具有JSON正文和auth1.0的API,迅速4