Skip to main content

Hello,


I wrote a library for freshdesk api v2 for my self usage. It's named GasFreshdesk - https://github.com/zixia/gas-freshdesk

var MyFreshdesk = new Freshdesk('https://UR.freshdesk.com', 'TOKEN')



var ticket = new MyFreshdesk.Ticket({

helpdesk_ticket: {

description:'A description'

, subject: 'A subject'

, email: 'you@example.com'

}

})



ticket.assign(9000658396)

ticket.note({

body: 'Hi tom, Still Angry'

, private: true

})

ticket.reply({

body: 'Hi tom, Still Angry'

, cc_emails: 'you@example.com'

})

ticket.setPriority(2)

ticket.setStatus(2)



ticket.del()

ticket.restore()



Logger.log('ticket #' + ticket.getId() + ' was set!')


If there's anybody use google apps script with Freshdesk, it might be help.


:)