Javascript
import Anchorbrowser from 'anchorbrowser'; const client = new Anchorbrowser({ apiKey: 'My API Key', }); const clipboard = await client.sessions.clipboard.get('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'); console.log(clipboard.data);
{ "data": { "text": "Clipboard content" } }
Retrieves the current content of the clipboard
API key passed in the header
The ID of the browser session
Clipboard content retrieved successfully
The response is of type object.
object