UNPKG

anchorbrowser

Version:

The official TypeScript library for the Anchorbrowser API

37 lines 1.22 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Clipboard = void 0; const resource_1 = require("../../core/resource.js"); const path_1 = require("../../internal/utils/path.js"); class Clipboard extends resource_1.APIResource { /** * Retrieves the current content of the clipboard * * @example * ```ts * const clipboard = await client.sessions.clipboard.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * ); * ``` */ get(sessionID, options) { return this._client.get((0, path_1.path) `/v1/sessions/${sessionID}/clipboard`, options); } /** * Sets the content of the clipboard * * @example * ```ts * const response = await client.sessions.clipboard.set( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { text: 'Text from clipboard API' }, * ); * ``` */ set(sessionID, body, options) { return this._client.post((0, path_1.path) `/v1/sessions/${sessionID}/clipboard`, { body, ...options }); } } exports.Clipboard = Clipboard; //# sourceMappingURL=clipboard.js.map