dvliman / freshdesk-api

A ruby API client for freshdesk.com (not maintained since 2012)
18 stars 29 forks source link

Fix to allow custom fields when creating a ticket. #12

Closed jedld closed 8 years ago

jedld commented 8 years ago

custom fields and tags should now be possible when creating a ticket (sample below):

client.post_create_ticket(email: "joseph.dayo@gmail.com", phone: "+639277785XXX", twitter_id: 'josephdayo', description: "document follow-up", description_html: "document follow-up", subject: "document follow-up", ticket_type: "Existing Application", product_id: 9000000910, status: Freshdesk::Ticket::STATUS_OPEN, group_id: 9000083657, priority: Freshdesk::Ticket::PRIORITY_LOW, custom_field: { source_313839: "Verification", user_id_313839: 1234567, loan_id_313839: 1234534, }, tags: 'doc,follow,up' )

It is unclear based on freshdesk's docs on how to add tags to tickets using XML in freshdesk, thus the json version

tsmacdonald commented 8 years ago

Cheers, thanks!