Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upload Ticket Attachments #9

Open
stefnats opened this issue Dec 13, 2021 · 4 comments · May be fixed by #8
Open

How to upload Ticket Attachments #9

stefnats opened this issue Dec 13, 2021 · 4 comments · May be fixed by #8
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@stefnats
Copy link
Contributor

Hey,

i've tried a few things but didn't succeed.
How would i go ahead and upload attachments to a Ticket?
https://desk.zoho.com/DeskAPIDocument#TicketAttachments#TicketAttachments_CreateTicketattachment

@thomas-kl1
Copy link
Owner

You came just in time @stefnats ! It's the same scope as #7 Originally this sdk was built with a minimum effort and I tried to find a pattern in the APIs of rthe Zoho Desk gateway. Unfortunately it didn't handle well the subtypes (such as attachments or threads).

I've started a new version of the service operation in #8 so you can pass a path and bind it with data instead of the regular entity_id.

@thomas-kl1 thomas-kl1 self-assigned this Dec 13, 2021
@thomas-kl1 thomas-kl1 added the enhancement New feature or request label Dec 13, 2021
@thomas-kl1
Copy link
Owner

However in your case this should works:

$gateway->getOperationPool()->getCreateOperation('tickets', [$ticketId, 'attachments'])->create($attachment);

@thomas-kl1 thomas-kl1 added documentation Improvements or additions to documentation question Further information is requested labels Dec 13, 2021
@thomas-kl1 thomas-kl1 linked a pull request Dec 13, 2021 that will close this issue
@ca-dsgn
Copy link

ca-dsgn commented Dec 16, 2021

@thomas-kl1 Could you also git an example of how to create a thread inside a ticket?

I think this part of the Zoho Desk documentation shows how to create it:
https://support.zoho.com/support/APIDocument.do#Threads#Threads_SendReplyviaIntegratedCustomChannels

So it should be /tickets/{ticket_id}/sendReply

What do you think?

@ca-dsgn
Copy link

ca-dsgn commented Jan 7, 2022

@thomas-kl1 Happy new year to you! Just wanted to come back to you with the question above this one regarding how to create a thread inside a ticket? Could you give an example of this?

@thomas-kl1 thomas-kl1 added the help wanted Extra attention is needed label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants