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 details)
Built Distribution
File details
Details for the file rtmilk-0.0.5.tar.gz
.
File metadata
- Download URL: rtmilk-0.0.5.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be256c50956157c56c49a39e5b13c0b2a478cdf6e22301a33e095f6b58e91bf |
|
MD5 | a966e1c12fecd79bf84543fb99f2a88b |
|
BLAKE2b-256 | 1722c5e8b5a1b62abdc7ef00d6d1e6ccc500742a1e29c74a71cd86617abc6bd3 |
File details
Details for the file rtmilk-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: rtmilk-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc99140996070097a78ec6f99d0e421ba3685253897286784ddfd15d9d6dc18 |
|
MD5 | 7e2d192e71effd40f94bff2497f21f20 |
|
BLAKE2b-256 | cec15d92f272fea3811480381c5dd5549256af63ee8e58d99bcee5e7c3c6a33b |