function getDocumentBody(id) {

  var doc = DocumentApp.openById(id);
  var body = doc.getBody();
  var text = body.getText();

  return text;
}
Fetches the body of given document, using DocumentApp.

@param {string} id The Google Document file ID.
@return {string} The body of the Google Document.