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

114
Vistas
Download an attachment using Gmail API - JavaScript

I'm trying to download an attachment using Gmail's API(JavaScript),

  1. So far I was able to get the messages including all of their properties. From a search I did, I understand that I need to access to: message-->payload-->parts[] and then to get some data, such as body.data, MIMEtype and some more. However, I don't understand the concept of the parts, it seems like every massage has a part, which is an array of 2 objects with the same properties, and I don't really know what data I need to retrieve.

  2. Let assume I got the required data from the message object, from my understanding, I should get an encrypted string which then needs to be converted to Base64 string, what's next? How do I download\read the attachment?

Thanks in advance.

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