Back to Example List

BRG Rates

      var hotel = new TTWebHotel(TTWebHotel.Reztrip, {
        hotelId: 'NYCSTW', //'NYCREF',
        portalId: 'stewarthotelnyc',
        defaultTimezone: 'America/New_York',
        defaultCurrency: 'USD',
        defaultLocale: 'en',
      })
      hotel.ready(function() {
        var brg = hotel.BRG;
        brg.getOTARates().then(function(response){
          document.getElementById('getOTARatesResponse').innerHTML = JSON.stringify(response,null,4);
        }).catch(function(error){
          document.getElementById('getOTARatesResponse').innerHTML = JSON.stringify(error,null,4);
        });
      });
    
Response: