Reactive

StoryApi의 ReactiveX 확장입니다.

아래는 story/profile을 호출하는 간단한 예제입니다.

StoryApi.shared.rx.profile()
   .retryWhen(Auth.shared.rx.incrementalAuthorizationRequired())
   .subscribe(onSuccess:{ (profile) in
       print(profile)
   }, onError: { (error) in
       print(error)
   })
   .disposed(by: <#Your DisposeBag#>)