Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.29 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.29 KB

rtm

rtm is a Swift library for the Remember the Milk API.

Integration

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"),
],

Usage

Initialization

import RTM
do {
	rtm = try RTM(appKey: appKey, appSecret: appSecret, authToken: authToken, permission: RTM.Permission.read, format: RTM.Format.json)
} catch {
	throw error
}

Get request url for rtm.auth.getFrob method

rtm.getUrl(method: RTM.Methods.Auth.getFrob)

Get request url for User authentication

rtm.getAuthUrl(frob: frob)

Get request url for rtm.auth.getToken method

rtm.getUrl(method: RTM.Methods.Auth.getToken, ["frob": frob])

Get request url for rtm.auth.checkToken method

rtm.getUrl(method: RTM.Methods.Auth.getToken)

Get request url for rtm.tasks.getList method

rtm.getUrl(method: RTM.Methods.Tasks.getList)

or

rtm.getUrl(method: RTM.Methods.Tasks.getList, ["filter": "status:incomplete"])

* Other methods not yet supported

Reference Repositories