How to get a refresh token and access token in office 365 using PHP

In this post we will show you get How to get a refresh token and access token in office 365 using PHP. as per document of microsoft.

we need to pass client id, client secret and redirect uri in following code and after click on login it will redirect you in login page of office365(outlook) and as out put iw till give you access token and refresh token.

You may alos like php get token office365