python-sample-send-mail icon indicating copy to clipboard operation
python-sample-send-mail copied to clipboard

Regarding listing calendar events

Open iniyanp opened this issue 8 years ago • 2 comments

Hi,

I am trying to hit this api me/calendars in the same code base. It's not working.

I am getting this following response.

{
error: {
code: "ErrorAccessDenied",
message: "Access is denied. Check credentials and try again.",
innerError: {
request-id: "7ba3122c-5c9f-42f9-b65e-ba01724bca67",
date: "2018-02-14T00:30:48"
}
}
}

even though I am sending access token in the header.

When I hit this me/microsoft.graph.sendMail endpoint, it's working.

Please let me know what I am missing.

Thanks, Iniyan P

iniyanp avatar Feb 14 '18 00:02 iniyanp

Hey Iniyan, just saw your comment. Did you get this working? From the error message you show, I think the issue may be that you need to register the app with a delegated permission of Calendar.Read (which the send-mail sample doesn't include).

dmahugh avatar Mar 08 '18 18:03 dmahugh

@iniyanp we are archiving this sample as it's no longer being maintained. We're replacing it with https://github.com/microsoftgraph/msgraph-training-pythondjangoapp.

jasonjoh avatar Oct 31 '18 18:10 jasonjoh