first commit
This commit is contained in:
12
services/docxtopdf.sh
Normal file
12
services/docxtopdf.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# ==== GET TOken
|
||||
rm -rf r.json
|
||||
curl -s -X POST -H "Content-Type: application/json" -H 'x-username:proc' -H 'x-password:pr0c2022#tc3l' http://localhost:8083/PoiWord/authentification/sync.sh > r.json
|
||||
token=$(cat r.json | jq -r '.response.token')
|
||||
|
||||
# === Create Docx to PDF
|
||||
curl -s --location --request POST "http://localhost:8083/PoiWord/main/sync.sh/docxtopdf" \
|
||||
--header "x-token: "$token \
|
||||
--header "Content-Type: application/x-www-form-urlencoded" \
|
||||
--data-urlencode "docxfilename=justifikasi_999999_131248.docx" > m.json
|
||||
|
||||
cat m.json
|
||||
Reference in New Issue
Block a user