Outlook API OAuth2 offline acces / permanent access using php

后端 未结 2 1569
后悔当初
后悔当初 2021-01-13 03:22

I followed the tutorial below to get mail using outlook api. This works, but requires the user to login every time to give access. Is there a way to give permanent / offline

2条回答
  •  无人共我
    2021-01-13 03:47

    Here is the actual string you would need to append to the scope:

    offline_access%20openid%20email%20profile

    A basic example of a scope:

    "openid+https%3A%2F%2Foutlook.office.com%2Fmail.read+https%3A%2F%2Foutlook.office.com%2Fcalendars.read+offline_access%20openid%20email%20profile"

提交回复
热议问题