Developer guide
Requirements
macOS >= 10.12
Xcode >= 8.0
CocoaPods >= 1.2.0
Dependencies
This project uses following libraries
Installation
Indigo Omt Ios Library is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'IndigoOmtIosLibrary'
Usage
import IndigoOmtIosLibrary
// Future gateway object needs an access token provider to access API on the server.
// The provider is defined in FGAccessTokenProvider interface.
// You can find a sample implementation of the protocol in example app.
let accessTokenProvider: FGAccessTokenProvider = AppAuthAccessTokenProvider(...)
// It also needs API URL
let url: URL = URL(string: "http://my-fg-instance.com")
// create future gateway object
let fg = FGFutureGateway(url: url, provider: accessTokenProvider)
// now you can list all tasks
fg.taskCollectionApi.listAllTasks { (response: FGApiResponse<FGTaskCollection>) in
guard let tasks = response.value?.tasks else {
return
}
print(tasks)
}
Last updated