Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

492
Visualizações
How do I iterate/loop an API request that has a JavaScript pre-request script in Postman?

I have an API endpoint that returns a maximum of 50 records per page. I need to extract data from subsequent pages and would normally write a loop in Python, but in this case the data provider has supplied a collection in Postman that runs a pre-request JavaScript script and creates a hash (for security/verification reasons). I am assuming that this pre-request needs to run for each iteration. The pre-request code that runs in Postman is supplied in the prerequest.js file

I have tried to convert this to Python but receive the message:

{"error":"Invalid signature","message":"The 'mac' value does not match the signature of the request. Ensure the 'mac' is calculated correctly using your secret and the request body is not being altered."}

In summary, I have a pre-request in JavaSript in Postman; I have a Python template that would usually achieve the looping (with other data sources). I need help to iterate in Postman or by running a Python script outside of Postman. All files referred to are available in my Github repository

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda