目录
目录README.md

OctavKit

Carthage compatible

Swift toolkit for the Octav API.

Requirements

  • Swift 4.1 or later
  • iOS 9.0 or later

Installation

Carthage

  • Insert github "to4iki/OctavKit" to your Cartfile.
  • Run carthage bootstrap --platform iOS.

Usage

// Setup your conference id(required)
OctavKit.setup(conferenceId: "YOUR_CONFERENCE_ID")

// Set locale(option)
OctavKit.setLocale(Locale.current)

// Sessions receives an instance of a type that conforms to Request.
OctavKit.sessions { (value, error) in
    switch (value, error) {
    case (let value?, _):
        print("success: \(value)")
    case (_, let error?):
        print("error: \(error)")
    case (.none, .none):
        fatalError("unreachable")
    }
}

// Sponsors receives an instance of a type that conforms to Request.
OctavKit.sponsors { (value, error) in ...

// Conference receives an instance of a type that conforms to Request.
OctavKit.conference { (value, error) in ...
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号