Get Office 365 API access token without user interaction
I want to add a feature to my application so that it will be able to add calendar events to outlook.com without user interaction. All the examples I've seen require user to login to be able to access office 365 api token. How do i get that token without user interaction? You can use the Client Credential to request the token instead of OAuth 2.0 Code Grant flow . Here is the request for your reference: POST https://login.microsoftonline.com/<tenantId>/oauth2/token HTTP/1.1 Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_id=<clientId> &client_secret=