GithubHelp home page GithubHelp logo

Comments (8)

papnoisanjeev avatar papnoisanjeev commented on July 20, 2024 1

@mikelga @phenomenalDenzel

1. For creating ticket attachment issue Locate path in your project:
vendor/uvdesk/api-bundle/API/Tickets.php
open Tickets.php and make change as done in below link:

e22e7ef

or directly copy and replace your existing file code from here.

2. For ticket reply attachment issue Locate path in your project:

vendor/uvdesk/api-bundle/API/Threads.php
open Threads.php and make change as done in below link:

e22e7ef

or directly copy and replace your existing file code from here.

from api-bundle.

phenomenalDenzel avatar phenomenalDenzel commented on July 20, 2024 1

Hy. Thank you very much for the reply. When i upload multiple attachments to uvdesk, it only uploads the last file in the set of files sent, and discards the rest. It is just like uvdesk does not accept an array of files when creating a ticket or replying to a ticket. It only takes one. Please help.

from api-bundle.

papnoisanjeev avatar papnoisanjeev commented on July 20, 2024

@mikelga
try with attachments key.

from api-bundle.

mikelga avatar mikelga commented on July 20, 2024

@mikelga
try with attachments key.

I have tried with "attachments": "text", but I have not got any result.

from api-bundle.

papnoisanjeev avatar papnoisanjeev commented on July 20, 2024

@mikelga

Try with "attachments": "file"

from api-bundle.

mikelga avatar mikelga commented on July 20, 2024

@mikelga

Try with "attachments": "file"

In what format need to go the attachments variable value?
I have tried with this cope sample but it does not upload any attachment:

import requests

with open("data_file.json", "rb") as file:
  f = file.read()

headers = {"Authorization": "Bearer TOKEN"}

payload = {
    "message": "Ticket Message",
    "actAsType": "customer",
    "name": "Name",
    "subject": "Ticket Subject",
    "from": "[email protected]",
    "attachments": f
}

r = requests.post("http://my_server/api/v1/ticket", data=payload, headers=headers)

print r.content

from api-bundle.

phenomenalDenzel avatar phenomenalDenzel commented on July 20, 2024

I have this same issue, I cant still create a ticket with an attachment. Please can you show an example on how to do that in code. Thank You.

from api-bundle.

papnoisanjeev avatar papnoisanjeev commented on July 20, 2024

@phenomenalDenzel @mikelga
Issue has been fixed.
Check this: #12 (comment)

Closing the issue you can still open it if not working for you !!

from api-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.