function MCAPI::campaignEcommAddOrder in Mailchimp 6
Same name and namespace in other branches
- 5.2 MCAPI.class.php \MCAPI::campaignEcommAddOrder()
- 5 MCAPI.class.php \MCAPI::campaignEcommAddOrder()
- 6.2 MCAPI.class.php \MCAPI::campaignEcommAddOrder()
- 7 MCAPI.class.php \MCAPI::campaignEcommAddOrder()
BETA: Attach Ecommerce Order Information to a Campaign. Note, this is expected to be used by ecommerce package plugins that we provide.
@section Campaign
Parameters
string $cid the campaign id to get stats for (can be gathered using campaigns()):
array $order an array of information pertaining to the order that has completed:
array $plugin_info plugin versioning:
Return value
bool true if the data is saved, otherwise an error is thrown.
File
- ./
MCAPI.class.php, line 586
Class
Code
function campaignEcommAddOrder($order) {
$params = array();
$params["order"] = $order;
return $this
->callServer("campaignEcommAddOrder", $params);
}