Craig Brass Systems Forum: Error message when using submitTicket with attachment - Craig Brass Systems Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error message when using submitTicket with attachment

#1
User is offline   incomservice 

  • Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 23-April 09
I am attempting to submit a file to kayako through the API with this code:
CODE
$params = array('user' => $APIusername,
'password' => $APIpassword,
'email' => $email,
'departmentId' => 4,
'priorityId' => 1,
'fullName' => $name,
'subject' => 'Subject',
'attachments' => array('name' => $filename, 'type' => $filetype, 'url' => $fileurl),
'message' => $ticket_contents,
'sendAuto' => true
);

$result = call('submitTicket', $params);


but I get the following error:
CODE
wsdl error: phpType is struct, but value is not an array: see debug output for details


Sorry for my ignorance, but where is the debug output, and why is that array not considered an array?

Thanks!
-Ryan
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users