title: Using java or javascript instead of Google app script
body: <p>From Google app script (<a href="https://developers.google.com/apps-script/%29,I" rel="nofollow">https://developers.google.com/apps-script/),I</a> got this:-</p>
  
  <pre><code>var doc = DocumentApp.create('Hello, World');
  // Access the body of the document, then add a paragraph.
  doc.getBody().appendParagraph('This document was created by Google Apps Script.');
  // Get the URL of the document.
  var url = doc.getUrl();
  </code></pre>
  
  <p>What I would like to do is to be able to duplicate this from my javascript or java code so I can create a doc and get its URL.  Any help is appreciated.</p>