public function create($type, $options = array(), $content = array(), $segment_opts = array(), $type_opts = array()) {
        if (!in_array($type, array("regular", "plaintext", "absplit", "rss", "auto"))) {
            throw new \Exception('the Campaign Type has to be one of "regular", "plaintext", "absplit", "rss", "auto" ');
        }
        $payload = array(
            'type' => $type,
            'options' => $options,
            'content' => $content,
            'segment_opts' => $segment_opts,
            'type_opts' => $type_opts
        );
        $apiCall = 'campaigns/create';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function create($type, $options = array(), $content = array(), $segment_opts = array(), $type_opts = array()) {
        if (!in_array($type, array("regular", "plaintext", "absplit", "rss", "auto"))) {
            throw new \Exception('the Campaign Type has to be one of "regular", "plaintext", "absplit", "rss", "auto" ');
        }
        $payload = array(
            'type' => $type,
            'options' => $options,
            'content' => $content,
            'segment_opts' => $segment_opts,
            'type_opts' => $type_opts
        );
        $apiCall = 'campaigns/create';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function create ( $ type , $ options = array ( ) , $ content = array ( ) , $ segment_opts = array ( ) , $ type_opts = array ( ) ) { if ( ! in_array ( $ type , array ( "regular" , "plaintext" , "absplit" , "rss" , "auto" ) ) ) { throw new \ Exception ( 'the Campaign Type has to be one of "regular", "plaintext", "absplit", "rss", "auto" ' ) ; } $ payload = array ( 'type' => $ type , 'options' => $ options , 'content' => $ content , 'segment_opts' => $ segment_opts , 'type_opts' => $ type_opts ) ; $ apiCall = 'campaigns/create' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return isset ( $ data ) ? $ data : false ; }
Create a new draft campaign to send. You can not have more than 32,000 campaigns in your account.

@link http://apidocs.mailchimp.com/api/2.0/campaigns/create.php
@param string $type the Campaign Type has to be one of "regular", "plaintext", "absplit", "rss", "auto"
@param array $options
@param array $content
@param array $segment_opts
@param array $type_opts
@return array Campaign data
@throws \Exception
@throws MailchimpAPIException
Create a new draft campaign to send . You can not have more than 32 000 campaigns in your account .