[fish] Update hostname for workday instance

This commit is contained in:
2021-10-18 21:39:04 -04:00
parent b986cf9df8
commit 8c70a6ef3e
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,4 @@
function ffbulkapi
echo "Posting '$argv' to bulk API... "
curl -k -H "Authorization: Bearer 1111-1111-1111-1111" -F 'csv_file=@"$argv"' https://my.five.unbl.ink/api/public/bulk-user-import/
end

View File

@ -1,6 +1,6 @@
function ffsftp
echo "Logging in ... "
curl -k --cookie-jar /tmp/cookie -i -H Content-Type\:\ application/x-www-form-urlencoded -XPOST https\://sftp-workday.five.unbl.ink/mobile/login\?debug_api\=1\&check_signature\=false -d email\=workday\@15five.com\&password\=15five
curl -k --cookie-jar /tmp/cookie -i -H Content-Type\:\ application/x-www-form-urlencoded -XPOST https\://workday.five.unbl.ink/mobile/login\?debug_api\=1\&check_signature\=false -d email\=workday\@15five.com\&password\=15five
echo "POSTing CSV file $argv.csv to app ... "
curl -k --cookie /tmp/cookie -i -H Content-Type\:\ application/json -XPOST https\://sftp-workday.five.unbl.ink/sftp/receiver/ -d \{\ \"Records\"\:\ \[\ \{\ \"s3\"\:\ \{\ \"object\"\:\ \{\ \"key\"\:\ \"$argv.csv\"\ \}\ \}\ \}\ \]\ \}
curl -k --cookie /tmp/cookie -i -H Content-Type\:\ application/json -XPOST https\://workday.five.unbl.ink/sftp/receiver/ -d \{\ \"Records\"\:\ \[\ \{\ \"s3\"\:\ \{\ \"object\"\:\ \{\ \"key\"\:\ \"$argv.csv\"\ \}\ \}\ \}\ \]\ \}
end

View File

@ -0,0 +1,4 @@
# Defined in /tmp/fish.xQPjBG/importusers.fish @ line 1
function importusers
http --form POST https://my.five.unbl.ink/api/public/bulk-user-import/ 'Authorization:Bearer 1111-1111-1111-1111' csv_file@$argv
end