Model/Apiconnector/Client.php
public function postCampaign($data)
    {
        $url = $this->getApiEndpoint() . self::REST_CREATE_CAMPAIGN;
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = $response->message;
            $this->helper->debug('postCampaign', [$message]);
        }

        return $response;
    }
public function postCampaign($data)
    {
        $url = $this->getApiEndpoint() . self::REST_CREATE_CAMPAIGN;
        $this->setUrl($url)
            ->setVerb('POST')
            ->buildPostBody($data);

        $response = $this->execute();

        if (isset($response->message)) {
            $message = $response->message;
            $this->helper->debug('postCampaign', [$message]);
        }

        return $response;
    }
public function postCampaign ( $ data ) { $ url = $ this -> getApiEndpoint ( ) . self :: REST_CREATE_CAMPAIGN ; $ this -> setUrl ( $ url ) -> setVerb ( 'POST' ) -> buildPostBody ( $ data ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = $ response -> message ; $ this -> helper -> debug ( 'postCampaign' , [ $ message ] ) ; } return $ response ; }
Creates a campaign.

@param array $data

@return null
@throws \Exception
Creates a campaign .