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

106
Views
Cómo restablecer la URL de la página siguiente para enumerar todos los datos en javascript

¿Cómo puedo configurar la URL "next_page" para reemplazar GetUrl hasta que "next_page" sea nula?

El primer "GetUrl", necesito configurarlo manualmente. Y luego obtendré los datos que incluyen el valor "next_page". Me gustaría volver a llamar a la función y restablecer "GetUrl" hasta que sea nulo. Para que pueda enumerar todos los datos de la API. ¿Puede alguien ayudarme a dar alguna sugerencia sobre cómo puedo hacerlo en JavaScript? Gracias .

 const getFieldsFromApi = async () => { const GetUrl = "abc.net" const Doorkey = {username: "token", password: "token"} const response = await Axios.get(GetUrl, {auth: Doorkey}) // console.log ("here I am able to console.log the next_page url", response.data.next_page) return response.data.users } const getData = async () => { const values = await getFieldsFromApi() values.forEach(field => { const row = document.createElement("tr"); row.appendChild(addCell(field.name)); row.appendChild(addCell(field.email)); tblbody.appendChild(row); }) };
about 4 years ago · Juan Pablo Isaza
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!