Back to Example List

Number of rooms left for base room

      brg.getOTARates().then(function(response){
        document.getElementById('getOTARatesResponse').innerHTML = JSON.stringify(response,null,4);
        console.log("getOTARates()" );
        console.log(response);
      }).catch(function(error){
        document.getElementById('getOTARatesResponse').innerHTML = JSON.stringify(error,null,4);
      });
    
Response:

    
  

Number of rooms left for base room

      brg.getBrgInfo().then(function(response){
        document.getElementById('getBrgInfoResponse').innerHTML = JSON.stringify(response,null,4);
        console.log("getBrgInfo()" );
        console.log(response);
      }).catch(function(error){
        document.getElementById('getBrgInfoResponse').innerHTML = JSON.stringify(error,null,4);
      });
      
    
Response: