s/%s', $store_id, $cart_id );
return $this->client->patch( $resource, $args );
}
/**
* @link https://mailchimp.com/developer/reference/ecommerce-stores/ecommerce-carts/#delete-delete_ecommerce_stores_store_id_carts_cart_id
*
* @param string $store_id
* @param string $cart_id
*
* @return bool
*/
public function delete_ecommerce_store_cart( $store_id, $cart_id ) {
return ! ! $this->client->delete( sprintf( '/ecommerce/stores/%s/carts/%s', $store_id, $cart_id ) );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/carts/lines/#read-get_ecommerce_stores_store_id_carts_cart_id_lines
*
* @param string $store_id
* @param string $cart_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_cart_lines( $store_id, $cart_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/carts/%/lines', $store_id, $cart_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/carts/lines/#read-get_ecommerce_stores_store_id_carts_cart_id_lines_line_id
*
* @param string $store_id
* @param string $cart_id
* @param string $line_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_cart_line( $store_id, $cart_id, $line_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/carts/%s/lines/%s', $store_id, $cart_id, $line_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/carts/lines/#create-post_ecommerce_stores_store_id_carts_cart_id_lines
*
* @param string $store_id
* @param string $cart_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function add_ecommerce_store_cart_line( $store_id, $cart_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/carts/%s/lines', $store_id, $cart_id );
return $this->client->post( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/carts/lines/#edit-patch_ecommerce_stores_store_id_carts_cart_id_lines_line_id
*
* @param string $store_id
* @param string $cart_id
* @param string $line_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function update_ecommerce_store_cart_line( $store_id, $cart_id, $line_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/carts/%s/lines/%s', $store_id, $cart_id, $line_id );
return $this->client->patch( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/carts/lines/#delete-delete_ecommerce_stores_store_id_carts_cart_id_lines_line_id
*
* @param string $store_id
* @param string $cart_id
* @param string $line_id
*
* @return bool
* @throws MC4WP_API_Exception
*/
public function delete_ecommerce_store_cart_line( $store_id, $cart_id, $line_id ) {
$resource = sprintf( '/ecommerce/stores/%s/carts/%s/lines/%s', $store_id, $cart_id, $line_id );
return ! ! $this->client->delete( $resource );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/#create-post_ecommerce_stores_store_id_promo_rules
*
* @param string $store_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function add_ecommerce_store_promo_rule( $store_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules', $store_id );
return $this->client->post( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/#read-get_ecommerce_stores_store_id_promo_rules
*
* @param string $store_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_promo_rules( $store_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules', $store_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/#read-get_ecommerce_stores_store_id_promo_rules_promo_rule_id
*
* @param string $store_id
* @param string $promo_rule_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_promo_rule( $store_id, $promo_rule_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s', $store_id, $promo_rule_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/#edit-patch_ecommerce_stores_store_id_promo_rules_promo_rule_id
*
* @param string $store_id
* @param string $promo_rule_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function update_ecommerce_store_promo_rule( $store_id, $promo_rule_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s', $store_id, $promo_rule_id );
return $this->client->patch( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/#delete-delete_ecommerce_stores_store_id_promo_rules_promo_rule_id
*
* @param string $store_id
* @param string $promo_rule_id
*
* @return boolean
* @throws MC4WP_API_Exception
*/
public function delete_ecommerce_store_promo_rule( $store_id, $promo_rule_id ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s', $store_id, $promo_rule_id );
return ! ! $this->client->delete( $resource );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/promo-codes/#create-post_ecommerce_stores_store_id_promo_rules_promo_rule_id_promo_codes
*
* @param string $store_id
* @param string $promo_rule_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function add_ecommerce_store_promo_rule_promo_code( $store_id, $promo_rule_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s/promo-codes', $store_id, $promo_rule_id );
return $this->client->post( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/promo-codes/#read-get_ecommerce_stores_store_id_promo_rules_promo_rule_id_promo_codes
*
* @param string $store_id
* @param string $promo_rule_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_promo_rule_promo_codes( $store_id, $promo_rule_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s/promo-codes', $store_id, $promo_rule_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/promo-codes/#read-get_ecommerce_stores_store_id_promo_rules_promo_rule_id_promo_codes_promo_code_id
*
* @param string $store_id
* @param string $promo_rule_id
* @param string $promo_code_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function get_ecommerce_store_promo_rule_promo_code( $store_id, $promo_rule_id, $promo_code_id, array $args = array() ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s/promo-codes/%s', $store_id, $promo_rule_id, $promo_code_id );
return $this->client->get( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/promo-codes/#edit-patch_ecommerce_stores_store_id_promo_rules_promo_rule_id_promo_codes_promo_code_id
*
* @param string $store_id
* @param string $promo_rule_id
* @param string $promo_code_id
* @param array $args
*
* @return object
* @throws MC4WP_API_Exception
*/
public function update_ecommerce_store_promo_rule_promo_code( $store_id, $promo_rule_id, $promo_code_id, array $args ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s/promo-codes/%s', $store_id, $promo_rule_id, $promo_code_id );
return $this->client->patch( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/promo-rules/promo-codes/#delete-delete_ecommerce_stores_store_id_promo_rules_promo_rule_id_promo_codes_promo_code_id
*
* @param string $store_id
* @param string $promo_rule_id
* @param string $promo_code_id
*
* @return boolean
* @throws MC4WP_API_Exception
*/
public function delete_ecommerce_store_promo_rule_promo_code( $store_id, $promo_rule_id, $promo_code_id ) {
$resource = sprintf( '/ecommerce/stores/%s/promo-rules/%s/promo-codes/%s', $store_id, $promo_rule_id, $promo_code_id );
return ! ! $this->client->delete( $resource );
}
/**
* Get a list of an account's available templates
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/templates/#read-get_templates
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_templates( array $args = array() ) {
$resource = '/templates';
return $this->client->get( $resource, $args );
}
/**
* Get information about a specific template.
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/templates/#read-get_templates_template_id
* @param string $template_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_template( $template_id, array $args = array() ) {
$resource = sprintf( '/templates/%s', $template_id );
return $this->client->get( $resource, $args );
}
/**
* Create a new template.
*
* @link https://mailchimp.com/developer/reference/templates/#post_/templates
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function add_template( array $args ) {
$resource = '/templates';
return $this->client->post( $resource, $args );
}
/**
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/templates/default-content/
* @param string $template_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_template_default_content( $template_id, array $args = array() ) {
$resource = sprintf( '/templates/%s/default-content', $template_id );
return $this->client->get( $resource, $args );
}
/**
* Create a new campaign
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#create-post_campaigns
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function add_campaign( array $args ) {
$resource = '/campaigns';
return $this->client->post( $resource, $args );
}
/**
* Get all campaigns in an account
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#read-get_campaigns
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_campaigns( array $args = array() ) {
$resource = '/campaigns';
return $this->client->get( $resource, $args );
}
/**
* Get information about a specific campaign.
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#read-get_campaigns_campaign_id
* @param string $campaign_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_campaign( $campaign_id, array $args = array() ) {
$resource = sprintf( '/campaigns/%s', $campaign_id );
return $this->client->get( $resource, $args );
}
/**
* Update some or all of the settings for a specific campaign.
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#edit-patch_campaigns_campaign_id
* @param string $campaign_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function update_campaign( $campaign_id, array $args ) {
$resource = sprintf( '/campaigns/%s', $campaign_id );
return $this->client->patch( $resource, $args );
}
/**
* Remove a campaign from the Mailchimp account
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#delete-delete_campaigns_campaign_id
* @param string $campaign_id
* @return bool
* @throws MC4WP_API_Exception
*/
public function delete_campaign( $campaign_id ) {
$resource = sprintf( '/campaigns/%s', $campaign_id );
return ! ! $this->client->delete( $resource );
}
/**
* Perform an action on a Mailchimp campaign
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#action-post_campaigns
*
* @param string $campaign_id
* @param string $action
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function campaign_action( $campaign_id, $action, array $args = array() ) {
$resource = sprintf( '/campaigns/%s/actions/%s', $campaign_id, $action );
return $this->client->post( $resource, $args );
}
/**
* Get the HTML and plain-text content for a campaign
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content/#read-get_campaigns_campaign_id_content
* @param string $campaign_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function get_campaign_content( $campaign_id, array $args = array() ) {
$resource = sprintf( '/campaigns/%s/content', $campaign_id );
return $this->client->get( $resource, $args );
}
/**
* Set the content for a campaign
*
* @link https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content/#edit-put_campaigns_campaign_id_content
* @param string $campaign_id
* @param array $args
* @return object
* @throws MC4WP_API_Exception
*/
public function update_campaign_content( $campaign_id, array $args ) {
$resource = sprintf( '/campaigns/%s/content', $campaign_id );
return $this->client->put( $resource, $args );
}
/**
* @return string
*/
public function get_last_response_body() {
return $this->client->get_last_response_body();
}
/**
* @return array
*/
public function get_last_response_headers() {
return $this->client->get_last_response_headers();
}
}
iPhone 16 Loud Speaker – alibabatelecom
“Iphone 12 , 12 pro display DA quality” has been added to your cart.
View cart
iPhone 16 Loud Speaker 899.00 kr
2 in stock