-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomateddownload.curl
40 lines (29 loc) · 3.36 KB
/
automateddownload.curl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--Works
--For files
--DeltaDec2022
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/20211224/delta --header 'Content-Type: application/zip' -o Delta.zip
--FullDec2022
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/20211224/full --header 'Content-Type: application/zip' -o Full.zip
--No need to specify full or delta and a date
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly --header 'Content-Type: application/zip' -o Full.zip
--Latest Delta
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/delta --header 'Content-Type: application/zip' -o LatestDelta.zip
--Use the default file name from SWIFTRef
--Delta
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/delta --header 'Content-Type: application/zip' -OJ
--Both FULL and DELTA
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly --header 'Content-Type: application/zip' -OJ
--FULL
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/full --header 'Content-Type: application/zip' -OJ
--For package
--Full
curl -u "username:password" --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlusPkg/txt/monthly --header 'Content-Type: application/zip' -OJ
--netrc
--https://docs.databricks.com/dev-tools/api/latest/authentication.html
curl --netrc --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlus_v3/txt/monthly/full --header 'Content-Type: application/zip' -OJ
--TXT Package
curl --netrc --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlusPkg/txt/monthly --header 'Content-Type: application/zip' -OJ
--XML Package
curl --netrc --cacert C:\\curl-7.81.0-win64-mingw\\bin\\api.swiftrefdata.com.chain.crt -v -s -L -X GET https://api.swiftrefdata.com/filesdownload/getBankDirectoryPlusPkg/xml/monthly --header 'Content-Type: application/zip' -OJ
--FA Import CSV REST API
curl -i --netrc -v -s -L -X POST https://estm-dev5.fa.em2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/setupTaskCSVImports -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' --data '{"TaskCode" : "CE_MANAGE_BANK_BRANCHES", "SetupTaskCSVImportProcess" : [{"TaskCode" : "CE_MANAGE_BANK_BRANCHES", "FileContent" : "'"$(base64 ./again_060017.zip | tr -d \\n)"'"}]}'