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

167
Views
Cómo puedo obtener la API para mostrar la pregunta

Empecé a aprender sobre la obtención de la API durante unos días y mi maestro me pidió que lo hiciera de inmediato. Dijo que la solicitud de los datos es ninguno. y responde que cuando se crea correctamente, el estado es 201 y el nuevo intento creado contiene el ID del intento y una serie de preguntas en Data (Json). Traté de codificar pero no funciona. Este es el enlace de la API: https://wpr-quiz-api.herokuapp.com/attempts

Toda la descripción está aquí. https://wpr-quiz-api.herokuapp.com/

Lo siento por mi mal inglés y el código no es tan bueno porque recién empiezo a aprenderlo. Entonces, si no le importa, descríbalo lo más detalladamente posible.

Muchas gracias

 let question=[]; const inputk = document.querySelector('span'); question.push(inputk.value); function onResponse(response){ return response.json(); } function onsubmit(object){ const inputk = document.querySelector('span'); question=object; } fetch("https://wpr-quiz-api.herokuapp.com/attempts") .then(onResponse).then(onsubmit)
 <form action="https://wpr-quiz-api.herokuapp.com/attempts" method="POST"> <div> <span></span> <input type="radio"> <label>Option 1</label><br> <input type="radio"> <label>Option 2</label><br> <input type="radio"> <label>Option 3</label><br> </div> </form>

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!