title: Google Apps API to retrieve domain names
body: <p>I am looking for a Google Apps API that allows me to retrieve all domain names associated with the Google Apps instance.
  I am looking for the programmatic equivalent of this: <a href="https://www.google.com/a/cpanel/gcompany.nl/DomainSettingsDomains" rel="nofollow">https://www.google.com/a/cpanel/gcompany.nl/DomainSettingsDomains</a></p>
  
  <p>As an added bonus it would be really nice if there is also a way to check if a given domain name is used as an Alias or in a Multi-domain configuration.</p>
  
  <p>Additional requirements:</p>
  
  <ul>
  <li>I need this API to be available using a Google App Engine app (Java). </li>
  <li>the API <em>must</em> allow authentication using OAUTH.</li>
  <li>The owner of the app is NOT a Google Apps Reseller (no special privileges). </li>
  <li>The app only needs readonly access.</li>
  </ul>