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