Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By timemarkov on
Hi All,
Have question about using of Service API. I used this service api for integration of external application (write in C++/Qt) with Drupal 6 site over xmrpc calls.
I have already setup working service API call for uploading ticket to the site from my client app as follow definition of service:
array(
'#method' => 'uploadTicket',
'#callback' => 'upload_ticket',
'#file' => array('file' => 'ticket_module.inc', 'module' => 'my_module'),
'#access callback' => 'services_access',
'#args' => array(
array(
'#name' => 'varhash',
'#type' => 'struct',
'#optional' => FALSE,
'#description' => 'A variable hash for query.'
)
),
'#return' => 'struct',
'#help' => 'Upload ticket reports to the server'
),
But i want to make call for uploading batches of tickets with one call (example 3 or 5 in same call, new method to add example uploadTickets) but how should definition of argument '#args'
of this new method that i will added in services?
Thanks in advance