コード例 #1
0
 /**
  * Import Ecommerce Order Information to be used for Segmentation
  * @link http://apidocs.mailchimp.com/api/1.3/ecommorderadd.func.php
  * @param OrderInterface $order
  * @return bool
  */
 public function ecommOrderAdd(OrderInterface $order)
 {
     // Prepare the parameters array
     $params = array('order' => $order->prepare());
     // Build the request URL
     $request = $this->client->prepare('ecommOrderAdd', $params);
     // Return the API response
     return $this->client->request($request);
 }
コード例 #2
0
ファイル: Campaign.php プロジェクト: benthedesigner/mailchimp
 /**
  * Attach ecommerce order information to a campaign
  * @see \MailChimp\Ecommerce\Order
  * @link http://apidocs.mailchimp.com/api/1.3/campaignecommorderadd.func.php
  * @param OrderInterface $order An order object ready to be prepared
  * @return bool
  */
 public function campaignEcommOrderAdd(OrderInterface $order)
 {
     // Call prepare() on the order to retrieve the request parameters
     $params = array('order' => $order->prepare());
     // Build the request URL
     $request = $this->client->prepare('campaignEcommOrderAdd', $params);
     // Return the API response
     return $this->client->request($request);
 }