Skip to content

Instantly share code, notes, and snippets.

@yota345
Last active August 12, 2016 07:28
Show Gist options
  • Save yota345/468b9923f3a02576dcef3e473c6085b3 to your computer and use it in GitHub Desktop.
Save yota345/468b9923f3a02576dcef3e473c6085b3 to your computer and use it in GitHub Desktop.
Request Alamofire and receive response. (https://github.com/takuwan0405/RxSwiftSample)
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