Get a Connect Webview
Unless you're using the custom_redirect_url you'll probably want to poll your newly created connect_webview to know if the user has signed in, or to get details about what devices they connected.
Returns a specified Connect Webview.
Unless you're using a custom_redirect_url, you should poll a newly-created connect_webview to find out if the user has signed in or to get details about what devices they've connected.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
connect_webview_idstring · uuidRequired
ID of the Connect Webview that you want to get.
Responses
200
OK
application/json
okbooleanRequired
400
Bad Request
401
Unauthorized
post
/connect_webviews/getCode Example
seam.connect_webviews.get("123e4567-e89b-12d3-a456-426614174000")
# ConnectWebview(
# connect_webview_id='d8e981cb-5f67-461f-9ab8-f7716e8aef4a',
# status='authorized',
# url='https://connect.getseam.com/connect_webviews/view?connect_webview_id=d8e981cb-5f67-461f-9ab8-f7716e8aef4a&auth_token=L9ASMhP19fTbuWbsTLjWdGLUsT1UAVqLX',
# login_successful=True,
# connected_account_id='137db755-0b63-47d6-a2de-3ff673a77e5a'
# )await seam.connectWebviews.get(
"d8e981cb-5f67-461f-9ab8-f7716e8aef4a"
);
// {
// connect_webview_id: 'd8e981cb-5f67-461f-9ab8-f7716e8aef4a',
// url: 'https://connect.getseam.com/connect_webviews/view?connect_webview_id=d8e981cb-5f67-461f-9ab8-f7716e8aef4a&auth_token=L9ASMhP19fTbuWbsTLjWdGLUsT1UAVqLX',
// workspace_id: 'f97073eb-c003-467a-965b-e6dba3a0131d',
// device_selection_mode: 'none',
// accepted_providers: [ 'schlage' ],
// selected_provider: 'schlage',
// accepted_devices: [],
// any_provider_allowed: false,
// any_device_allowed: null,
// created_at: '2022-08-23T15:01:55.636Z',
// login_successful: true,
// authorized_at: '2022-08-23T15:02:12.295Z',
// status: 'authorized',
// connected_account_id: '137db755-0b63-47d6-a2de-3ff673a77e5a'
// }Parameters
Response
JSON format
Last updated
Was this helpful?

