Update README.md Fixed typo
Update README.md
Fixed typo
Utility methods to use OAuthSwift to sign Alamofire request.
This framework provide a RequestInterceptor to set into alamofire Session
RequestInterceptor
Session
let interceptor = oauthswift.requestInterceptor let session = Session(interceptor: interceptor)
Then you can make you request as usual
session.request("http://oauthbin.com/v1/echo")
or pass the interceptor as argument of request function
interceptor
request
session.request("http://oauthbin.com/v1/echo", interceptor: interceptor)
you must have call authorize function on your OAuthSwift or nothing will be signed.
authorize
OAuthSwift
The OAuth2 interceptor will also automatically refresh the access token, using the Alamofire RequestRetrier mechanism.
RequestRetrier
github "OAuthSwift/OAuthSwiftAlamofire"
carthage update
use_frameworks! pod 'OAuthSwiftAlamofire'
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
OAuthSwiftAlamofire
Utility methods to use OAuthSwift to sign Alamofire request.
How to use
This framework provide a
RequestInterceptorto set into alamofireSessionThen you can make you request as usual
or pass the
interceptoras argument ofrequestfunctionauthorizefunction on yourOAuthSwiftor nothing will be signed.Refresh token
The OAuth2 interceptor will also automatically refresh the access token, using the Alamofire
RequestRetriermechanism.Installation
Support Carthage
carthage update.Support CocoaPods