[fish] Update hostname for workday instance
This commit is contained in:
4
fish/.config/fish/functions/ffbulkapi.fish
Normal file
4
fish/.config/fish/functions/ffbulkapi.fish
Normal 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
|
||||||
@ -1,6 +1,6 @@
|
|||||||
function ffsftp
|
function ffsftp
|
||||||
echo "Logging in ... "
|
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 ... "
|
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
|
end
|
||||||
|
|||||||
4
fish/.config/fish/functions/importusers.fish
Normal file
4
fish/.config/fish/functions/importusers.fish
Normal 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
|
||||||
Reference in New Issue
Block a user