Latest 0.2.1
Homepage https://github.com/kiliankoe/StuWeDD
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Frameworks Foundation
Authors

🎓 StuWeDD

Swift library for accessing some of the data the Studentenwerk Dresden has to offer.

Quick Start

Talk to the Cardservice to acquire data about your Emeal card. You will need to have registered for AutoLoad to have the necessary authentication details.

Cardservice.login(username: "1234567890", password: "hunter2") { result in
    guard let service = result.success else { return }

    service.carddata { result in
        guard let data = result.success else { return }
        print(data)
    }

    let twoDaysAgo = Date().addingTimeInterval(-60 * 60 * 24 * 2)
    let now = Date()
    service.transactions(begin: twoDaysAgo, end: now) { result in
        guard let transactions = result.success else { return }
        print(transactions)
    }
}

Installation

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

// Cocoapods
pod 'StuWeDD'

// Carthage
github "kiliankoe/StuWeDD"

// Swift Package Manager
.Package(url: "https://github.com/kiliankoe/StuWeDD", majorVersion: 0)

Latest podspec

{
    "name": "StuWeDD",
    "version": "0.2.1",
    "summary": "Access Studentenwerk Dresden data",
    "description": "Access some of the data the Studentenwerk Dresden has to offer.",
    "homepage": "https://github.com/kiliankoe/StuWeDD",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kilian Koeltzsch": "[email protected]"
    },
    "social_media_url": "https://twitter.com/kiliankoe",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/kiliankoe/StuWeDD.git",
        "tag": "0.2.1"
    },
    "source_files": "Sources/**/*",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This