Created
November 19, 2017 23:06
-
-
Save shikhirsingh/0a531081f150d1ff51b50a40e0ef5637 to your computer and use it in GitHub Desktop.
cURL: Send an OTP SMS using TeleSign API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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