I am trying to use PHP-Curl to create a ticket via Blesta API and have a few queries:
As per my understanding, in order to create a new ticket you need two HTTP calls. One for add() and another for addReply(). Is that correct?
Secondly is there is working example of posting files along with the call to create a ticket. The parameter's explanation for it is a bit vague:
* @param array $files A list of file attachments that matches the global FILES array
Firstly I am not sure what should the structure of $files should be. Furthermore when I went through the code it appeared that the addReply method will only make use of '$files' array posted by API instead of $_FILES (only which can have the local 'tmp_name' of uploaded files).
$this->Upload->setFiles($files, false);
but $files is supplied remotely. I hope I am making some sense here.
Question
mesino
Hi.
I am trying to use PHP-Curl to create a ticket via Blesta API and have a few queries:
As per my understanding, in order to create a new ticket you need two HTTP calls. One for add() and another for addReply(). Is that correct?
Secondly is there is working example of posting files along with the call to create a ticket. The parameter's explanation for it is a bit vague:
* @param array $files A list of file attachments that matches the global FILES array
Firstly I am not sure what should the structure of $files should be. Furthermore when I went through the code it appeared that the addReply method will only make use of '$files' array posted by API instead of $_FILES (only which can have the local 'tmp_name' of uploaded files).
but $files is supplied remotely. I hope I am making some sense here.
Thanks.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.