Skip to main content

Microsoft To Do API client

Project description

pymstodo ✔️

PyPI Build Status License: GPL v3

Python wrapper to deal with Microsoft To Do.

Installation

pip3 install pymstodo

Requirements

  • python >= 3.10
  • requests_oauthlib >= 1.3.0

Usage

  1. Get an API key before using pymstodo.
  2. 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)  # you have to save it somewhere
print(token)
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')
  1. Full documentation: https://inbalboa.github.io/pymstodo/

  2. API description by Microsoft see at https://docs.microsoft.com/en-us/graph/api/resources/todo-overview

Project details


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.2.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

pymstodo-0.2.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pymstodo-0.2.0.tar.gz.

File metadata

  • Download URL: pymstodo-0.2.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pymstodo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9d633f2a1b468bcbeb1486c351e94f18b39bf92d49e87a5d5e88c3d435c83993
MD5 845d79d0681f2d11e08887a2a3cba89d
BLAKE2b-256 1ac45e65edbe160f791a3bcf639a100df84297d481602e7c1f7c4a03f924cb35

See more details on using hashes here.

File details

Details for the file pymstodo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymstodo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pymstodo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee3b60652305c82bd8bd025f947818de6b3c41d9415f5333c3f2352d6380f019
MD5 3f374d5f30312b3949a8756449065577
BLAKE2b-256 f0916ccd939a3b7f2ae3b9c0bc4ca50b27e1dc487752ece86580ad5195c2fb3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page