13 lines
536 B
Bash
13 lines
536 B
Bash
# ==== 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
|