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

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

        return $response->getData();
    }
public function update ( $ CampaignId , CampaignDraft $ campaignDraft ) { $ response = $ this -> mailjet -> put ( Resources :: $ Campaigndraft , [ 'id' => $ CampaignId , 'body' => $ campaignDraft -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftManager:update() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Update one specific campaigndraft resource
@param int $id
@param Campaigndraft $campaignDraft
Update one specific campaigndraft resource