lib/API/CampaignsApi.php
/**
     * Operation createCampaign
     *
     * Create New Campaign
     *
     * @param  string $list_id The list you will send the campaign to. (required)
     * @param  string $template_id The template that will define the content of the page. Note: the Email Template is copied when creating this campaign, so future changes to that Email Template will not alter the content of this campaign. (required)
     * @param  string $from_email The email address your email will be sent from and will be used in the &#x60;reply-to&#x60; header. (required)
     * @param  string $from_name The name or label associated with the email address you&#39;re sending from. (required)
     * @param  string $subject The email subject of the campaign (required)
     * @param  string $name If not specified, this will default to the subject of the campaign. (optional, default to 'Campaign Name')
     * @param  bool $use_smart_sending If set, limits the number of emails sent to an individual within a short period. Valid values are &#x60;true&#x60; and &#x60;false&#x60;. If not specified, defaults to &#x60;true&#x60;. (optional, default to true)
     * @param  bool $add_google_analytics If specified, adds Google Analytics tracking tags to links. Valid values are &#x60;true&#x60; and &#x60;false&#x60;. If not specified, defaults to &#x60;false&#x60;. (optional, default to false)
     *
     * @throws \Klaviyo\ApiException on non-2xx response
     * @throws \InvalidArgumentException
     * @return array<string,object>
     */
Operation createCampaign
Create New Campaign

@param  string $list_id The list you will send the campaign to. (required)
@param  string $template_id The template that will define the content of the page. Note: the Email Template is copied when creating this campaign, so future changes to that Email Template will not alter the content of this campaign. (required)
@param  string $from_email The email address your email will be sent from and will be used in the `reply-to` header. (required)
@param  string $from_name The name or label associated with the email address you're sending from. (required)
@param  string $subject The email subject of the campaign (required)
@param  string $name If not specified, this will default to the subject of the campaign. (optional, default to 'Campaign Name')
@param  bool $use_smart_sending If set, limits the number of emails sent to an individual within a short period. Valid values are `true` and `false`. If not specified, defaults to `true`. (optional, default to true)
@param  bool $add_google_analytics If specified, adds Google Analytics tracking tags to links. Valid values are `true` and `false`. If not specified, defaults to `false`. (optional, default to false)

@throws \Klaviyo\ApiException on non-2xx response
@throws \InvalidArgumentException
@return array
Operation createCampaign Create New Campaign @param string $list_id The list you will send the campaign to . ( required ) @param string $template_id The template that will define the content of the page . Note : the Email Template is copied when creating this campaign so future changes to that Email Template will not alter the content of this campaign . ( required ) @param string $from_email The email address your email will be sent from and will be used in the ` reply - to ` header . ( required ) @param string $from_name The name or label associated with the email address you ' re sending from . ( required ) @param string $subject The email subject of the campaign ( required ) @param string $name If not specified this will default to the subject of the campaign . ( optional default to ' Campaign Name ' ) @param bool $use_smart_sending If set limits the number of emails sent to an individual within a short period . Valid values are ` true ` and ` false ` . If not specified defaults to ` true ` . ( optional default to true ) @param bool $add_google_analytics If specified adds Google Analytics tracking tags to links . Valid values are ` true ` and ` false ` . If not specified defaults to ` false ` . ( optional default to false ) @throws \ Klaviyo \ ApiException on non - 2xx response @throws \ InvalidArgumentException @return array
public function createCampaign($list_id, $template_id, $from_email, $from_name, $subject, $name = 'Campaign Name', $use_smart_sending = true, $add_google_analytics = false)
    {
        list($response) = $this->createCampaignWithHttpInfo($list_id, $template_id, $from_email, $from_name, $subject, $name, $use_smart_sending, $add_google_analytics);
        return $response;
    }
public function createCampaign ( $ list_id , $ template_id , $ from_email , $ from_name , $ subject , $ name = 'Campaign Name' , $ use_smart_sending = true , $ add_google_analytics = false ) { list ( $ response ) = $ this -> createCampaignWithHttpInfo ( $ list_id , $ template_id , $ from_email , $ from_name , $ subject , $ name , $ use_smart_sending , $ add_google_analytics ) ; return $ response ; }
Operation createCampaign
 Create New Campaign
Operation createCampaign Create New Campaign