Microsoft To Do API client
Project description
pymstodo ✔️
Python wrapper to deal with Microsoft To Do.
Installation
pip3 install pymstodo
Requirements
- python >= 3.8
- requests_oauthlib >= 1.3.0
Usage
- Get an API key before using
pymstodo
. - Use it to initialize client. Here is an example:
from pymstodo import ToDoConnection
client_id = 'PLACE YOUR CLIENT ID'
client_secret = 'PLACE YOUR CLIENT SECRET'
auth_url = ToDoConnection.get_auth_url(client_id)
redirect_resp = input(f'Go here and authorize:\n{auth_url}\n\nPaste the full redirect URL below:\n')
token = ToDoConnection.get_token(client_id, client_secret, redirect_resp)
todo_client = ToDoConnection(client_id=client_id, client_secret=client_secret, token=token)
lists = todo_client.get_lists()
task_list = lists[0]
tasks = todo_client.get_tasks(task_list.list_id)
print(task_list)
print(*tasks, sep='\n')
- Full API description see at https://docs.microsoft.com/en-us/graph/api/resources/todo-overview
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
pymstodo-0.0.11.tar.gz
(16.7 kB
view hashes)
Built Distribution
pymstodo-0.0.11-py3-none-any.whl
(16.9 kB
view hashes)
Close
Hashes for pymstodo-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd65fc9c2f0d1a493f1d037bcc30470c71778156aa53e0dd273e1879c39fc04c |
|
MD5 | 7506b4406c0769a0b4ea5f2540cde8ed |
|
BLAKE2b-256 | bad9a360656d0e18e29e782ee3ef758a177901619a05a77205d47e0a1e7c563b |