Last active
August 12, 2016 07:28
-
-
Save yota345/468b9923f3a02576dcef3e473c6085b3 to your computer and use it in GitHub Desktop.
Request Alamofire and receive response. (https://github.com/takuwan0405/RxSwiftSample)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EventsRequest | |
.GetEvents(count) | |
.request() | |
.subscribe( | |
onNext: { | |
print("API response: \($0)") | |
}, onError: { | |
print("Error: \($0)") | |
} | |
) | |
.addDisposableTo(disposeBag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment