RTM API wrapper
Project description
rtmilk
Python wrapper for "Remember the Milk" API
Usage
from rtmmilk import API, FileStorage, RTMError
storage = FileStorage('rtm-token.json')
api = API(API_KEY, SHARED_SECRET, storage)
timeline = api.TasksCreateTimeline().timeline
try:
api.TasksAdd(timeline, 'task name')
except RTMError as e:
print(e)
Authorization
from rtmmilk import API, AuthorizationSession, FileStorage
api = API(API_KEY, SHARED_SECRET, FileStorage('rtm-token.json'))
authenticationSession = AuthorizationSession(api, 'delete')
input(f"Go to {authenticationSession.url} and authorize. Then Press ENTER")
token = authenticationSession.Done()
print('Authorization token written to rtm-token.json')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtmilk-0.0.5.tar.gz
(7.6 kB
view hashes)
Built Distribution
rtmilk-0.0.5-py3-none-any.whl
(8.2 kB
view hashes)