Skip to content

Instantly share code, notes, and snippets.

@Porrapat
Created January 27, 2020 08:58
Show Gist options
  • Save Porrapat/5fd2734de0a78b03c321e5940ba7b2d4 to your computer and use it in GitHub Desktop.
Save Porrapat/5fd2734de0a78b03c321e5940ba7b2d4 to your computer and use it in GitHub Desktop.
AUTH_KEY=
APP_ID=
MESSAGE_TEMPLATE_ID=
SENDER_NAME=
MOBILE=
curl -X POST -H "Content-Type: application/json" \
-H "Authorization: $AUTH_KEY" \
-d "{\"applicationId\":\"$APP_ID\",\"messageId\":\"$MESSAGE_TEMPLATE_ID\",\"from\":\"$SENDER_NAME\",\"to\":\"$MOBILE\"}" \
"https://api2.ants.co.th/2fa/1/pin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment