Skip to content

Instantly share code, notes, and snippets.

@shikhirsingh
Created November 19, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikhirsingh/0a531081f150d1ff51b50a40e0ef5637 to your computer and use it in GitHub Desktop.
Save shikhirsingh/0a531081f150d1ff51b50a40e0ef5637 to your computer and use it in GitHub Desktop.
cURL: Send an OTP SMS using TeleSign API
# This only works on a Unix/Linux system
curl -X POST https://rest-api.telesign.com/v1/messaging \
-d phone_number=XXXXXXXX \
-d message="Your code is $RANDOM" \
-d message_type="ARN" \
-u "CUSTOMER_ID":"API_KEY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment