// You can find your project ID in the Overview tab of any Integration
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// Get all tickets
paragon.request("freshdesk", "/tickets", {
method: "GET"
});
// Create a ticket
paragon.request("freshdesk", "/tickets", {
method: "POST",
body: {
description: "Details about the issue...",
subject: "Support Needed...",
email: "[email protected]",
priority: 1,
status: 2,
cc_emails: ["[email protected]","[email protected]"]
}
});
// Get all contacts
paragon.request("freshdesk", "/contacts", {
method: "GET"
});