microsoft-graph-mail

How to filter emails based on received date using microsoft graph api with python

How to filter emails based on received date using microsoft graph api with python Question: I’m working on a python script to retrieve emails based on receiveddatetime. When i run my script i get the error below. Below is my whole script. import msal import json import requests def get_access_token(): tenantID = ‘yyy’ authority = …

Total answers: 1

Microsoft Graph API move junk email into Inbox not working (giving 400 response)

Microsoft Graph API move junk email into Inbox not working (giving 400 response) Question: For ref I am sharing code here. For the documentaiton I am following this link https://learn.microsoft.com/en-us/graph/api/message-move?view=graph-rest-1.0&tabs=http but it is giving 400 error response def move_junk_to_inbox(message_id: str): status, access_token = get_token() headers = { “Content-Type”: “application/json”, “Authorization”: access_token # “Prefer”: …

Total answers: 1

Uploading large mail attachments with MS Graph API, running forever

Uploading large mail attachments with MS Graph API, running forever Question: I am trying to upload large attachments (>4 Mb). For that, the documentation suggests the following steps: Creating a draft message -> starting upload session -> uploading attachment in chunks -> sending the mail When executing the 3rd step, the code keeps running forever …

Total answers: 1