Create a calendar connect link
A hosted link that takes one of your users through Google or Microsoft consent and connects their calendar. Put url behind your "Connect calendar" button: create it when your page renders, or from a route of your own behind your login that creates it and redirects. Creating one again for the same member, provider, return_url, client_reference_id and member_data while one is open returns that link, so a page that creates a link on every render adds nothing.
After consent the browser returns to return_url with calendar_connect_link_id, status (connected or error), and member_id, calendar_connection_id, error and client_reference_id when they apply. calendar_connection.connected is sent as well.
Send member_data and the member is created when the user consents, with that name and metadata. Its email is the account the user connects, as the provider verifies it (a Microsoft account's user principal name), and it is never one of the workspace's owners or admins. member_data.email only pre-fills the provider's account chooser. Send member_id instead to reconnect a member you already have: whichever account they approve is connected. A member whose calendar is already connected, through the API or in HappyScribe, must be disconnected first.
Request
- Base URLhttps://www.happyscribe.com/api/v1
- AuthAPI key in header Authorization
Request body
Example request
{
"workspace_id": "wks_01k6a2r9s8x7c2dvq3m5n6p4ab",
"member_data": {
"metadata": {
"gurusup_user_id": "usr_8812"
}
}
}Response
The link, new or the open one it matched.
Example response
{
"workspace_id": "wks_01k6a2r9s8x7c2dvq3m5n6p4ab",
"member_data": {
"metadata": {
"gurusup_user_id": "usr_8812"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.