rtm is a Swift library for the Remember the Milk API.
You can use The Swift Package Manager to install RTM
by adding the proper description to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/Angelmaneuver/rtm", from: "1.0.0"),
],
import RTM
do {
rtm = try RTM(appKey: appKey, appSecret: appSecret, authToken: authToken, permission: RTM.Permission.read, format: RTM.Format.json)
} catch {
throw error
}
rtm.getUrl(method: RTM.Methods.Auth.getFrob)
rtm.getAuthUrl(frob: frob)
rtm.getUrl(method: RTM.Methods.Auth.getToken, ["frob": frob])
rtm.getUrl(method: RTM.Methods.Auth.getToken)
rtm.getUrl(method: RTM.Methods.Tasks.getList)
or
rtm.getUrl(method: RTM.Methods.Tasks.getList, ["filter": "status:incomplete"])
* Other methods not yet supported