Skip to content

Angelmaneuver/rtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Swift library for the Remember The Milk API.

Topics

Resources

License

Stars

Watchers

Forks

Languages