JavaScript SDK: swarmhit.accounts.createLiveView(accountId)
For a pending CAPTCHA (or a LinkedIn page with nothing to type) on a sender our own LinkedIn gateway runs, i.e. when checkpoint.liveView is true. Returns a single-use websocket URL, valid about ten minutes, streaming the sign-in browser: the server sends JSON text frames {"type":"frame","data":"<base64 JPEG>","meta":{"deviceWidth":…}} and {"type":"state","state":"live|finishing|ended","result":…}; the client sends {"type":"mouse","action":"mousePressed|mouseReleased|mouseMoved","x":…,"y":…}, {"type":"wheel","x":…,"y":…,"dx":…,"dy":…}, {"type":"key","key":…,"code":…,"keyCode":…} or {"type":"text","text":…}. Coordinates are in the page's pixels (scale by meta.deviceWidth). When LinkedIn accepts the step the sender connects as usual (account.connected). Most integrators send their user to the hosted connect page instead, which shows this view itself. 409 with live_view_unavailable when there is no browser step to show, live_view_not_ready while the sign-in is still running (retry in a minute), and live_view_expired once it is no longer waiting.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/accounts/string/live-view"{ "data": { "url": "string", "expiresAt": "2019-08-24T14:15:22Z" }}