Skip to content

Instantly share code, notes, and snippets.

View wallysoncarvalho's full-sized avatar
🤣
" Why did the programmer quit her job? She didn't get arrays." - undefined

Wallyson wallysoncarvalho

🤣
" Why did the programmer quit her job? She didn't get arrays." - undefined
  • BEES Bank
View GitHub Profile
@samlucax
samlucax / geraDados.js
Last active December 1, 2023 16:14 — forked from willnss/gist:3246637
Gerador de Dados para Postman env
//adicionar eval(environment.geraDados) no início do pré-request
function gera_random(n) {
var ranNum = Math.round(Math.random() * n);
return ranNum;
}
function mod(dividendo, divisor) {
return Math.round(dividendo - (Math.floor(dividendo / divisor) * divisor));
}
@egermano
egermano / README.md
Last active May 9, 2024 16:28
Gerador de CPF para Postman

Gerador de CPF

Criei esse script para gerar CPF randômicos para test de API no Postman.

Adicione esse script na aba Pre-request Script e adicione a variável {{cpf}}na sua request.

Sempre que você chamar o Postman vai chamar o seu script antes de enviar a request gerando um novo CPF em toda request.

@bcnzer
bcnzer / postman-pre-request.js
Last active July 22, 2024 10:59
Postman pre-request script to automatically get a bearer token from Auth0 and save it for reuse
const echoPostRequest = {
url: 'https://<my url>.auth0.com/oauth/token',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'application/json',
raw: JSON.stringify(
{
client_id:'<your client ID>',
client_secret:'<your client secret>',