restmicrosoft-graph-apimicrosoft-todo

Access Microsoft Todo List via Rest API


I want to get my to-dos from my Microsoft Todo (https://to-do.live.com) but I don't have a clue on how to get started. I searched online but did not find documentation for a REST API.

Does anyone know how to access certain Todo lists from MS Todo (formerly known as Wunderlist)? Is the Graph API the place to look? I don't have an Office 365 account.


Solution

  • You could use Graph API for to-do tasks

    For example to list all the tasks categories :

    enter image description here

    To access tasks under a specific category :

    https://graph.microsoft.com/v1.0/me/todo/lists/{id}/tasks
    

    with the token in the request body to authorize the request.

    Authorization : Bearer <Token>
    

    To get Token

    I understand you don't have any Office 365 Work accounts.

    Access the below url and login

    https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps

    Login using your personal account credentials.

    Register app :

    enter image description here

    Once registration is complete, you will be getting app credentials.

    Once Registration done. Grant the permissions :

    App --> App Name --> API Permissions --> Graph Api

    Check the below Tasks delegated permissions

    enter image description here

    You can authorize the client using the below url :

    https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={client_id}&scope={scope}
        &response_type=token&redirect_uri={redirect_uri}
    

    Obtain the token.