Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

298
Vistas
Is there a way to use the Google Apps Script Document functions (like getChild) when pulling via the API?

I have some code that runs as a Google Apps Script (GAS), iterating over a Google Doc's contents and extracting elements, using methods such as getBody, getText, getChild, and so on. I'd like to port the code to run on Node.js. However when using the API, you get documents as a tree of static dictionary objects, rather than instances with these accessor methods.

I want an adaptor / facade that exposes the static object tree as a tree of class instances that offer the GAS methods aforementioned. (My parsing code is 2,500 lines and will get improvements.) Naturally, I'd quite like this for free, as it'd be a lot of work.

The GAS service must be doing this internally, extracting and returning details from the document object tree.

Is there anything available that does this, ie, allows me to use the document traversal GAS methods aforementioned outside of Google's GAS infrastructure?

(I don't want to use the GAS infrastructure as it is error prone, slow, time and rate limited, non-atomic, varies by user account type, and so on. However out of the box ideas very welcome indeed - I'm new to Google Apps.)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda