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

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

        return $response->getData();
    }
public function findByCampaignId ( $ CampaignId ) { $ response = $ this -> mailjet -> get ( Resources :: $ Campaign , [ 'id' => $ CampaignId ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignManager:findByCampaignId() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Access a given campaign resource
@param string $CampaignId
@return array
Access a given campaign resource