Latest 1.1.0
License MIT
Platforms ios 9.0
Dependencies AFNetworking, libPhoneNumber-iOS, SCrypto


Getting started

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:


Get an API key

To get an API key please email [email protected]

  1. Open OpenTimeSDKTests/Config.plist
  2. Set the value of OPENTIME_KEY to your test key. It won’t work with your live key.
  3. If you are contributing to the project use the following to ignore changes to the file so you don’t commit your own API key:
    git update-index --assume-unchanged Example/Tests/Config.plist

Run the tests

The 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){

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 is released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "OpenTimeSDK",
    "version": "1.1.0",
    "summary": "The iOS SDK for OpenTimeu00ae",
    "description": "The iOS SDK for the OpenTimeu00ae enterprise software application makes it easy for iOS developersntrying to integration with the OpenTime REST API simple and fast.nSee also",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "woodcockjosh": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "social_media_url": "",
    "platforms": {
        "ios": "9.0"
    "source_files": "OpenTimeSDK/Classes/**/*",
    "dependencies": {
        "AFNetworking": [
            "~> 2.6.3"
        "libPhoneNumber-iOS": [
            "~> 0.8.17"
        "SCrypto": []
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This