Kaynağa Gözat

[fish] Update hostname for workday instance

Colin Powell 3 yıl önce
ebeveyn
işleme
8c70a6ef3e

+ 4 - 0
fish/.config/fish/functions/ffbulkapi.fish

@@ -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

+ 2 - 2
fish/.config/fish/functions/ffsftp.fish

@@ -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

+ 4 - 0
fish/.config/fish/functions/importusers.fish

@@ -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