title: Calling ms graph API using browserless console python program
body: <p>I am trying to hit microsoft to do list api using python program.</p>
  <p>Api : <a href="https://graph.microsoft.com/beta/me/todo/lists" rel="nofollow noreferrer">https://graph.microsoft.com/beta/me/todo/lists</a> , which resulted in error : Access is denied due to invalid credentials. But when I tried the api : <a href="https://graph.microsoft.com/v1.0/users" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/users</a>, I am getting the results properly. The documentation of the api (<a href="https://docs.microsoft.com/en-us/graph/api/resources/todo-overview?view=graph-rest-beta" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/graph/api/resources/todo-overview?view=graph-rest-beta</a>) says &quot;Currently, the API supports only permissions delegated by the signed-in user&quot;. Currently I am trying to get auth code and then auth token and then hitting the API. To act as signed in user, what method should I follow in python? Please note I am not using a web frame work. When I tried using flask and then hitting the API , it works. Need to know how a browserless console python application can serve the purpose.</p>
  <p>Thank youin advance for the help</p>