In success handler/closure an OAuthSwiftResponse
object is now returned instead of multiple objects (data and http response)
oauthswift.client.get("an url",
success: { response in
let data = response.data // response.string for utf8 decoded string from data
},
...
You can extends OAuthSwiftResponse
to return a decoded object by reading JSON for instance
You can also get the URLRequest
send to the server into this OAuthSwiftResponse
object
Backward compatibility with Objective C work with prefixed objc_
functions