Get the content of a Google document in Google's Document
JSON type.
id
<String>
: The Id for a Google Doc (see here)options
<Object>
suggestionsViewMode
<String>
: Defaults toPREVIEW_WITHOUT_SUGGESTIONS
, but can be overridden to handle suggested edits in a different way. (see the API docs for options).
import Gootenberg from 'gootenberg';
import credentials from './credentials.json'
async function myFunc(){
const goot = new Gootenberg();
await goot.auth.jwt(credentials);
await goot.docs.get('MY_DOC_ID');
}
myFunc();