Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

291
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda