shell script demo
nguyenhuybo@VN-LV00184-N Downloads % cat call_api.sh #!/bin/bash n=$1 echo $2 send_omikuji(){ echo "starting new call api: omikuji" curl -X 'POST' 'https://talkfortune-notification-hook.line-apps-beta.com/callback' -H 'connection: close' -H 'user-agent: LineBotWebhook/2.0' -H 'content-length: 315' -H 'content-type: application/json; charset=utf-8' -H 'x-line-signature: plpngha8sEj7LJe6xd/6InfKBWQ32kso2SOaAQKL01o=' -H 'host: talkfortune-notification-hook.line-apps-beta.com' -d $'{"destination":"u367dfc1ff8ed00c67a5966f542e5c25e","events":[{"type":"message","message":{"type":"text","id":"379186645792718849","text":"おみくじ"},"timestamp":1638844157276,"source":{"type":"user","userId":"uf4167f77e339b332dd154eb8ead96191"},"...