Auth
Connect an Outlook Account
Last updated
Connect an Outlook Account
Last updated
There are 2 steps for connecting a Microsoft Outlook account. The first step is to request a Microsoft OAuth URL.
GET
https://api.pyas.io/microsoft/oauth
email*
String
a user's email address
state
String
optional application state
x-api-key*
String
API key
The next step is to connect the account. After you get an OAuth URL, you should direct your user to that URL in the browser. The user will then have to authorized/allow access on the OAuth screen. Once the user allows access, Microsoft will redirect the user back to whatever redirect URL that you've set in Pyas. The URL will contain a code
parameter, which you will need to use in the connect request.
POST
https://api.pyas.io/microsoft/connect
x-api-key*
String
API key
code*
String
code returned from Microsoft OAuth
name*
String
user's full name
Note: Be sure to save the accountId
returned from the successful connect request. You will need it in order to access the user's Outlook calendar.