Swiftpack.co - Package - Enari/KronoxComunicator

KronoxComunicator

A library for communicating with the website for booking group rooms at Mälardalen University (MDH).

Introduction

Mälardalen University provides limited places to studdy. The School has bookable group rooms that has to be booked in advance. For students the rooms can be booked one week in advance, and generally you have to. This library provides an easy way to comunicate with the booking service.

Installation

Using Swift Package Manager

Add the following line to you Package.swift

.package(url: "https://github.com/Enari/KronoxComunicator.git", from: "0.1.0"),

Manual

Copy the Sources/KronoxComunicator/KronoxComunicator.swift into your project

Example usage

Logging in and getting bookings.

let kronoxComm = KronoxComunicator();
kronoxComm.login(username: "username", password: "password")
kronoxComm.getMyBookings()

Starting a session from cookie (JSESSIONID) and making a booking.

let kronoxComm = KronoxComunicator("wshQC7-qgzzGH-tt0y8x+8dL");
kronoxComm.makeBooking(date: "2018-01-01", room: "U2-271", interval: 1, comment: "Example Booking")

Github

link
Stars: 0
Help us keep the lights on

Releases

0.1.2 - Jan 13, 2018

0.1.1 - Jan 13, 2018

0.1.0 - Jan 13, 2018