// 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: "tom@outerspace.com",
priority: 1,
status: 2,
cc_emails: ["ram@freshdesk.com","diana@freshdesk.com"]
}
});
// Get all contacts
paragon.request("freshdesk", "/contacts", {
method: "GET"
});