CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Feb 2017 |
| SwiftSwift Version | 3.0 |
| SPMSupports SPM | ✗ |
Maintained by Josh woodcock.
| Depends on: | |
| AFNetworking | ~> 2.6.3 |
| libPhoneNumber-iOS | ~> 0.8.17 |
| SCrypto | >= 0 |
To install use
pod 'OpenTimeSDK', '~> 1.1.0'
You must be on iOS 9.0 or later and specify it in your Pods file like so:
platform :ios, '9.0'
You must use frameworks in your Pods file spec like so:
use_frameworks!
To get an API key please email [email protected]
git update-index --assume-unchanged Example/Tests/Config.plistThe best way to get started is to run the tests to make sure everything is working
Initialize OpenTime before you use it anywhere
OpenTimeSDK.initSession("Your really awesome test key goes here", inTestMode: true);
Set the credentials for the user like so:
OpenTimeSDK.session.setPlainTextCredentials(1, password: "ilovetesting");
Get the current user’s availability like so:
OTAvailabilityAPI.getAllMyAvailability { (response: GetAllMyAvailabilityResponse) -> Void in
if(response.success == true){
print("Yippee!")
}
}
When you’re done testing you can take test mode off like so:
OpenTimeSDK.initSession("Your realy awesome live key goes here");
If you want to change the server use:
OpenTimeSDK.session.setServer("https://myotherawesomeserver.opentimeapp.com")
OpenTimeSDK is released under the MIT license. See LICENSE for details.