public function create(CampaignDraft $campaignDraft)
    {
        $response = $this->mailjet->post(Resources::$Campaigndraft,
            ['body' => $campaignDraft->format()]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create(CampaignDraft $campaignDraft)
    {
        $response = $this->mailjet->post(Resources::$Campaigndraft,
            ['body' => $campaignDraft->format()]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create ( CampaignDraft $ campaignDraft ) { $ response = $ this -> mailjet -> post ( Resources :: $ Campaigndraft , [ 'body' => $ campaignDraft -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftManager:create() failed" , $ response ) ; } return $ response -> getData ( ) ; }
create a new fresh CampaignDraft
@param Campaigndraft $campaignDraft
create a new fresh CampaignDraft