public function updateCampaign($CampaignId, Campaign $campaign) {
        $response = $this->mailjet->put(Resources::$Campaign, ['id' => $CampaignId, 'body' => $campaign->format()]);
        if (!$response->success()) {
            $this->throwError("CampaignManager:updateCampaign() failed", $response);
        }

        return $response->getData();
    }
public function updateCampaign($CampaignId, Campaign $campaign) {
        $response = $this->mailjet->put(Resources::$Campaign, ['id' => $CampaignId, 'body' => $campaign->format()]);
        if (!$response->success()) {
            $this->throwError("CampaignManager:updateCampaign() failed", $response);
        }

        return $response->getData();
    }
public function updateCampaign ( $ CampaignId , Campaign $ campaign ) { $ response = $ this -> mailjet -> put ( Resources :: $ Campaign , [ 'id' => $ CampaignId , 'body' => $ campaign -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignManager:updateCampaign() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Update one specific campaign resource with a PUT request, providing the campaign's ID value
@param string $id
@return array
Update one specific campaign resource with a PUT request providing the campaign s ID value