title: Why does SitesApp.getSites(myDomain) not work?
body: <p>I'm currently playing around with Google Apps Script and can't get the following snippet to work. 
  <img src="https://i.stack.imgur.com/aLT20.jpg" alt="enter image description here"><br></p>
  
  <p>The error message is: <b>the requested resource was not found.</b><br>
  <img src="https://i.stack.imgur.com/NYIw3.jpg" alt="enter image description here"><br>
  I also tested the undocumented method which I found here: <a href="https://stackoverflow.com/questions/12395695/need-to-list-all-the-sites-under-a-google-domain-using-google-apps-script">Need to list all the sites under a google domain using Google Apps Script</a></p>
  
  <pre><code>    var mySites = SitesApp.getAllSites(myDomain, 1, 10);
  </code></pre>
  
  <p>
  but I get the same error. For the complete example, see below. Thank you in advance.<br><br></p>
  
  <pre><code>function view() {
    var myDomain = 'example.com';
  
    // this works
    var mySite = SitesApp.getSite(myDomain);
    Logger.log('title=' + mySite.getTitle() + '\n' + 'name=' + mySite.getName());
  
    // this works, too
    var myPages = mySite.getAllDescendants();
    for (i in myPages) {
      Logger.log('page=' + myPages[i].getTitle());
    }  
  
    //this does not work, error: the requested ressource was not found
    var mySites = SitesApp.getSites(myDomain);
  
    // this also does not work, same error
    var mySites = SitesApp.getAllSites(myDomain, 1, 10);
  }
  </code></pre>
  
  <p><b>EDIT 1</b>: I tested with 3 different browsers on Windows 7: Firefox Nightly, Google Chrome and Opera.<br>
  <b>EDIT 2</b>: Same error on Samsung Galaxy Tab 10.1N with Android 3.2 and Firefox browser.</p>