Closed Cloudineer closed 7 years ago
Been busy, this slipped off the radar. I will submit a pull request using bullet 2 above. This has less impact for backward compatibility. The list can be easily explode'd if required.
This is closed by pull request #34
You can pass multiple record Ids to deleteRecords, as the param idList (the same as my pull request #29 for getRecordById). I am happy to submit a pull request for this change. My question for MCTekK and other contributors is how to return the list of deleted records. Currently Response.php L215 uses
preg_match
to extract a single recordId as$this->recordId
, but this does not allow for multiple records deleted.As I see it the options are:
$this->recordId
to a list of the recordIds (as an array),$this->recordId
to a list of the recordIds as a semicolon separated string (as in the Zoho response),$this->recordId
, but set either a new property$this->recordIds
or$this->records
to the list of recordIds (as an array).I'll make a pull request at the end of the week, based on any comments posted here.