Skip to main content

Tripetto Studio API

This API reference covers the Tripetto Studio Services package that is used to interact with the Studio back-end.

✨ Installation

npm install tripetto-services
Typescript support

This package contains type declarations and supports TypeScript out-of-the-box.

👩‍💻 Example

Here is a basic example of a stock runner that uses the Studio API to fetch a form definition and an event handler onSubmit for storing a form response:

import { run } from "tripetto-runner-autoscroll";
import { Services } from "tripetto-services";

const { definition, onSubmit } = Services.init({
// You can obtain the token of a form in the share panel of the Studio
token: "a-valid-tripetto-token"
});

run({
definition,
onSubmit
});

💎 Classes