Sorry, no results found for "".
Returns an array of resource objects of type editing_session
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const editingSessions = await client.editingSessions.list();7 8 for (const editingSession of editingSessions) {9 // Check the 'Returned output' tab for the result ☝️10 console.log(editingSession);11 }12}13 14run();
1{2 id: "312",3 last_activity_at: "2019-03-30T09:29:14.872Z",4 locked_at: "2019-03-30T09:29:14.872Z",5 editor: { type: "account", id: "312" },6 active_item: { type: "item", id: "hWl-mnkWRYmMCSTq4z_piQ" },7 active_item_type: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },8}