Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

81
Views
Google Calendar API no devuelve todos los eventos

Integré la API de Google en mi proyecto de reacción. Tengo alrededor de 300 entradas en mi calendario, pero solo recibo alrededor de 180 entradas.

¿Cuál es mi error?

¡Gracias!

 const getEvents = async () => { function start() { gapi.client .init({ apiKey: "MyKey", }) .then(function () { return gapi.client.request({ path: `https://www.googleapis.com/calendar/v3/calendars/"myMail"/events`, }); }) .then((response) => { let events = response.result.items; console.log(events); setEventObject(events); }); } gapi.load("client", start); };

ACTUALIZAR Esto no funciona. Parece que los parámetros adicionales no tienen impacto en la solicitud...

 const getEvents = () => { function start() { gapi.client .init({ apiKey: "myKey", }) .then(function () { return gapi.client.request({ path: `https://www.googleapis.com/calendar/v3/calendars/"myMail"/events`, maxResults: 2500, showDeleted: true, }); }) .then((response) => { let events = response.result.items; console.log(events); setEventObject(events); }); } gapi.load("client", start); };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Está pasando sus parámetros de manera incorrecta a través de la solicitud. Consulte el github de google

Debe pasar los params URL params en forma de par clave-valor.

 return gapi.client.request({ path: `https://www.googleapis.com/calendar/v3/calendars/"myMail"/events`, params: { maxResults: 2500, showDeleted: true } });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!