Auth
Connect an Outlook Account
Get OAuth URL
There are 2 steps for connecting a Microsoft Outlook account. The first step is to request a Microsoft OAuth URL.
Get an OAuth URL
GET
https://api.pyas.io/microsoft/oauth
Get a Microsoft OAuth URL
Query Parameters
email*
String
a user's email address
state
String
optional application state
Headers
x-api-key*
String
API key
Connect Account
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.
Connect Account
POST
https://api.pyas.io/microsoft/connect
Connect Microsoft Account
Headers
x-api-key*
String
API key
Request Body
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.
Last updated