Mokhtar Kalmoush
Mokhtar Kalmoush

Reputation: 119

Using java or javascript instead of Google app script

From Google app script (https://developers.google.com/apps-script/),I got this:-

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();

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.

Upvotes: 1

Views: 1165

Answers (1)

Andrew Roberts
Andrew Roberts

Reputation: 2798

You'll need to use the Google Drive API.

Upvotes: 1

Related Questions