Create ticket, upload images and text for each customer using Python, Golang or other scripting language?

Create ticket, upload images and text for each customer using Python, Golang or other scripting language?

Hi Everyone!

Can you please tell me where I can obtain some documentation or an example of how I can create ticket, upload images and text for each assigned customer within ZohoDesk?  Thank you for your time. 

Below is a small snippet of doing this process with ZenDesk in Python. 

  • zenpy_client = Zenpy(**creds1)

  • yesterday = datetime.datetime.now() - datetime.timedelta(days=62)
  • yesterday = yesterday.replace(hour=0, minute=0, second=0, microsecond=0) # Returns a copy
  • today = datetime.datetime.now()
  • today = today.replace(hour=23, minute=59, second=0, microsecond=0) # Returns a copy
  • for ticket in zenpy_client.search(
  •     created_between=[yesterday, today],
  •     group="Data Analytics",
  •     type="ticket",
  •     status=['new', 'open'],
  •     minus='negated'
  • ):
  •     print(ticket)
  •     print(ticket.custom_fields[5])

  •   # Upload to Zenpy Ticket
  •             tname = str5 + "out.png"
  •             upload_comb = zenpy_client.attachments.upload(
  •                 "C:/FIleName/" + str5 + "out.png"
  •             )
  •             ticket = zenpy_client.tickets(id=ticket.id)
  •             ticket.comment = Comment(
  •                 body="Uploaded Charts",
  •                 public=False,
  •                 uploads=[upload_comb.token],
  •             )
  •             zenpy_client.tickets.update(ticket)
  •             break



    • Access your files securely from anywhere

          Zoho Developer Community




                                    Zoho Desk Resources

                                    • Desk Community Learning Series


                                    • Digest


                                    • Functions


                                    • Meetups


                                    • Kbase


                                    • Resources


                                    • Glossary


                                    • Desk Marketplace


                                    • MVP Corner


                                    • Word of the Day



                                        Zoho Marketing Automation
                                                • Sticky Posts

                                                • How to Add Users to your Organization in ZohoMail?

                                                  A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________


                                                Manage your brands on social media



                                                      Zoho TeamInbox Resources

                                                        Zoho DataPrep Resources



                                                          Zoho CRM Plus Resources

                                                            Zoho Books Resources


                                                              Zoho Subscriptions Resources

                                                                Zoho Projects Resources


                                                                  Zoho Sprints Resources


                                                                    Qntrl Resources


                                                                      Zoho Creator Resources



                                                                          Zoho Campaigns Resources


                                                                            Zoho CRM Resources

                                                                            • CRM Community Learning Series

                                                                              CRM Community Learning Series


                                                                            • Kaizen

                                                                              Kaizen

                                                                            • Functions

                                                                              Functions

                                                                            • Meetups

                                                                              Meetups

                                                                            • Kbase

                                                                              Kbase

                                                                            • Resources

                                                                              Resources

                                                                            • Digest

                                                                              Digest

                                                                            • CRM Marketplace

                                                                              CRM Marketplace

                                                                            • MVP Corner

                                                                              MVP Corner





                                                                                Design. Discuss. Deliver.

                                                                                Create visually engaging stories with Zoho Show.

                                                                                Get Started Now