Skip to main content

Managing Applications

After you've succesfully authenticated and instantiated an instance of the Editframe class, you can access the applications that you have created in the developer portal.

Fetch all applications

const applications = await editframe.applications.all();
[
{
"id": "K0abXLbwde",
"name": "Mohr Ltd",
"description": "Facilis saepe culpa nemo facere. Et quaerat provident eveniet dolor enim itaque non. Molestias a non labore animi iusto eum. Dolor voluptatibus vero quis non id praesentium.",
"webhook": "https://webhook.site/f98f486d-a40c-4d7e-9966-4a8260f26566"
},
{
"id": "jYLbOZ2NX0",
"name": "Towne Inc",
"description": "Et deleniti sunt ut voluptatem. Et officia quo quam sit. Consequatur facilis nesciunt ipsa occaecati voluptates molestiae sit nemo. Qui eveniet laborum facere.",
"webhook": "https://webhook.site/f98f486d-a40c-4d7e-9966-4a8260f26566"
}
]

Fetch a single application

const applicationId = "abc123";
const application = await editframe.applications.get(applicationId);

The above command returns JSON structured like this:

{
"id": "jYLbOZ2NX0",
"name": "Towne Inc",
"description": "Et deleniti sunt ut voluptatem. Et officia quo quam sit. Consequatur facilis nesciunt ipsa occaecati voluptates molestiae sit nemo. Qui eveniet laborum facere.",
"webhook": "https://webhook.site/f98f486d-a40c-4d7e-9966-4a8260f26566"
}