Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 795 Bytes

docs.get.md

File metadata and controls

22 lines (16 loc) · 795 Bytes

docs.get(id)

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 to PREVIEW_WITHOUT_SUGGESTIONS, but can be overridden to handle suggested edits in a different way. (see the API docs for options).

Example

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