@audiotool/nexus - v0.0.12
    Preparing search index...

    Function createAudiotoolClient

    • Create the main Audiotool client instance.

      This is the primary entry point to interact with the audiotool backend.

      See getLoginStatus for how to authorize the client.

      Parameters

      Returns Promise<AudiotoolClient>

      // Basic setup
      import { createAudiotoolClient } from "@audiotool/nexus";


      // create client
      const client = await createAudiotoolClient({authorization: status});

      // Connect to an online project
      const document = await client.createSyncedDocument({
      mode: "online",
      project: "https://beta.audiotool.com/studio?project=abc123"
      });

      await document.start();
      // Access API services
      const client = await createAudiotoolClient({authorization: status});

      // List projects
      const projects = await client.api.projectService.listProjects({});