Tickets & Conversations

BB33
Member

Ticket integration

Hi, 
i want to integrate with hubspot-ticketing system.
my client want to create ticket and send reply with attachments.
admins have to response to ticket with hubspot-panel.
as i understand, for create ticket and then , add reply for ticketk : 
i have to call hubspot-API , several times.

 

fn createTicket (subject, content, priority , ...args) {

1.create ticket <create-crm-obj> (with subject, priority ,...)

2.associate ticket to contact (created before) <create-crm-association>

}

fn createReply (ticket_id , content, attachment) {

1.if ticket has attachment => upload file to hubspot <filemanager>

2.create Engagement (NOTE)  with <V1> api (because i can associate attachment-id ,

and contact-id to the ticket with one request)

3.update stage if necessary <update-crm-obj>

}


for create new ticket : 
 createTicket() ; 
 createReply(); // first reply with attachment 

i have to call 5 api ?

for create reply : createReply()

i have to call 3 api ?
am i on the right track?
is there any api that do all of these stuff, in one api call ?

0 Upvotes
1 Reply 1
BB33
Member

Ticket integration

i also saw the SDK's github,
its just wrapper on api.
( i mean sdk does not have any solution or trick to call less api ?)
isn't it ?

0 Upvotes