RTM API wrapper
Project description
Python wrapper for "Remember the Milk" API
Usage of client
from rtmmilk import Client, RTMError, Task
client = Client(API_KEY, SHARED_SECRET, TOKEN)
try:
client.Add(Task(title='title', tags=['tag1', 'tag2']))
await client.AddAsync(Task(title='title', tags=['tag1', 'tag2']))
except RTMError as e:
print(e)
Usage of API functions directly
from rtmmilk import API, RTMError
api = API(API_KEY, SHARED_SECRET, TOKEN)
timeline = api.TasksCreateTimeline().timeline
try:
api.TasksAdd(timeline, 'task name')
except RTMError as e:
print(e)
Authorization
from rtmmilk import AuthorizationSession
authenticationSession = AuthorizationSession(API_KEY, SHARED_SECRET, 'delete')
input(f"Go to {authenticationSession.url} and authorize. Then Press ENTER")
token = authenticationSession.Done()
print(f'Authorization token is {token}')
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.10.tar.gz
(12.7 kB
view details)
Built Distribution
rtmilk-0.0.10-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file rtmilk-0.0.10.tar.gz
.
File metadata
- Download URL: rtmilk-0.0.10.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6167ef587d5a13bca6aff53188ef8b0ac9c546d9d7584ee967568588e710a6e |
|
MD5 | f0dfe3b786f79b3a185f1fdc43289d9d |
|
BLAKE2b-256 | bcf8ffa89f1f26638075b057759a0fc4ed3c67adfbd472230ee99ce8d1dbcd0a |
File details
Details for the file rtmilk-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: rtmilk-0.0.10-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0b678f96cd37455b8c60ea6b3b778d258f11d81e583c7f63d354f02313fe55a |
|
MD5 | bb37f32cf0f30a05688e14a9c47eadbb |
|
BLAKE2b-256 | 8dc1eb4852e1d875848f3bbe0d35a6e7f02ff13b23a3968993781c626a7f9596 |