The iOS SDK can be used to add Teneo chatbot functionality to iOS, tvOS or watchOS applications. It handles communication with the Teneo Engine and makes it fast and easy to add Teneo chat functionality to your iOS app. See iOS Chat for an example project that uses this SDK.
The source code for the iOS SDK can be found on GitHub.
Must be called before calling sendInput or closeSession
do {
try TieApiService.sharedInstance.setup("BASE_URL", endpoint: "ENDPOINT")
} catch {
// Handle errors here
}
TieApiService.sharedInstance.sendInput({MESSAGE},
parameters: {PARAMETERS},
success: { response in
// Handle response. Remember to dispatch to main thread if updating UI
}, failure: { error in
// Handle error
})
TieApiService.sharedInstance.closeSession({ response in
// Handle response. Remember to dispatch to main thread if updating UI
}, failure { error in
// Handle error
})
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 1.5+ is required to build TieApiClient 1.1.1+.
To integrate TieApiClient into your Xcode project using CocoaPods, specify it in your Podfile
:
pod "TieApiClient"
Then, run the following command:
$ pod install
TieApiClient is released under the Apache License, Version 2.0. See LICENSE for details.
Was this page helpful?