使用OAuthSwift进行身份验证的带有swift4的OAuth1.0失败

时间:2019-05-20 13:29:35

标签: ios woocommerce swift4 oauth-1.0a

使用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

0 个答案:

没有答案