Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 759 Bytes

parse.archie.md

File metadata and controls

22 lines (16 loc) · 759 Bytes

parse.archie(id)

Downloads and parses an ArchieML-formatted Google Doc into JSON data.

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

  const data = await goot.parse.archie('MY_DOC_ID');
}

myFunc();