Tengo una aplicación de reacción que usaré para traer otros contactos de Google y veo que hay un límite para 1000 contactos en cada llamada a Google People Api.
const getGoogleContacts = async (token) => { if(!token) throw new Error('Google Auth Token Missing'); let params = {"readMask" : "emailAddresses,names", "pageSize" : "1000"}; let url = `https://people.googleapis.com/v1/otherContacts?${new URLSearchParams(params)}`; let headers = { Authorization: `Bearer ${token}`}; let rawData = await fetch(url, { headers }) .then(res => res.text()); let parsedJson = JSON.parse(rawData); let nextPageCheck = checkForNextPageToken(parsedJson); if(nextPageCheck){ //get the next page contacts. } return handleRawContactData(parsedJson); } const checkForNextPageToken = (response) => { if(response.hasOwnProperty('nextPageToken')){ return true; } return false; }