slaventius 2 years ago
parent 41f9e8f2ba
commit f4f0af0a32
  1. 31
      scripts/send_to_auth.sh

@ -1,13 +1,26 @@
#!/bin/sh #!/bin/sh
for i in $(seq 1 100); if [ -z "$1" ]
do then
curl --location --request POST 'http://{address_of_ingress}/api/v1/registration' \ echo "No argument uid (1 of 3)"
--header 'x-device: android' \ exit 1
--header 'x-checksum: b25seWZvcm9iaXVzZXJzhY0e357DGJYW5kcm9pZA==' \ fi
--header '1673858714;' \
if [ -z "$2" ]
then
echo "No argument email (2 of 3)"
exit 1
fi
if [ -z "$3" ]
then
echo "No argument password (3 of 3)"
exit 1
fi
curl --location --request POST 'http://{ingress_address}/api/v1/registration' \
--header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode uid=""$1"" \ --data-urlencode uid=""$1"" \
--data-urlencode email=""$1@mail.ru"" --data-urlencode email=""$2"" \
echo "" --data-urlencode password=""$3""
done echo ""

Loading…
Cancel
Save