CNKit

master

🗺 Campus Navigator API wrapper
kiliankoe/CNKit

🗺 CNKit

Travis Documentation

Access Campus Navigator data through a swift wrapper.

Installation

CNKit is available through Carthage/Punic and Swift Package Manager, whatever floats your boat.

// Carthage
github "kiliankoe/CNKit"

// Swift Package Manager
.package(url: "https://github.com/kiliankoe/CNKit", from: "latest version")

Overview

The basic interaction is the same through all model types. Here as an example for the all-encompassing Campus type.

Campus.fetch { result in
    guard let buildings = result.success else { return }
    for building in buildings {
        print(building.abbrev)
    }
}

// P38, APB, ...

All types returned by the API have a method called fetch (or very similar) to request either a specific resource or a list of them. Any necessary params are required by the method.

Further documentation can be found here: https://kiliankoe.github.io/CNKit/

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 00:46:18 GMT-0900 (Hawaii-Aleutian Daylight Time)