Skip to content

Instantly share code, notes, and snippets.

Shikhir Singh shikhirsingh

Block or report user

Report or block shikhirsingh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PhoneId-Number-Deact-Addon
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-phone-number> \\
--header "Content-Type: application/json" \\
--data '{"addons":{"number_deactivation":{}}}' \\
--user "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / PhoneId-ContactMatch.sh
Last active Apr 10, 2018
PhoneId-ContactMatch_addon
View PhoneId-ContactMatch.sh
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-phone-number> \\
--header "Content-Type: application/json" \\
--data '{"addons":{"contact_match":{"first_name": "User First Name", "last_name":"User Last Name", "address": "123 Main St", "city": "Marina Del Rey"}}}' \\
--user "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / PhoneId-ContactPlus_addon.sh
Last active Apr 10, 2018
PhoneId-ContactPlus_addon
View PhoneId-ContactPlus_addon.sh
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-number>  \\
--header "Content-Type: application/json" \\
--data '{"addons":{"contact":{"billing_postal_code": "90292"}}}' \\
--user "CUSTOMER_ID":"API_KEY"
View PhoneId-ContactsAddon
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-number> \\
--header "Content-Type: application/json" \\
--data '{"addons":{"contact":{}}}' \\
--user "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / php_test.sh
Last active Dec 5, 2017
Docker - Telesign PHP Hello World
View php_test.sh
docker run --rm --name=composer -v $(pwd):/www matriphe/alpine-composer:latest composer require telesign/telesign
wget https://raw.githubusercontent.com/TeleSign/php_telesign/master/examples/messaging/1_send_message.php
# Edit the file for api keys
docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.0-apache
@shikhirsingh
shikhirsingh / voice-message.sh
Last active Nov 20, 2017
cURL: Send an OTP Voice Message using TeleSign API
View voice-message.sh
curl -X POST https://rest-api.telesign.com/v1/voice \
-d phone_number=XXXXXXXX \
-d message="You have a dentist appointment at 2:15pm" \
-d message_type="ARN" \
-u "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / phoneid.sh
Created Nov 20, 2017
cURL: Get a Phone Number's ID Attributes using TeleSign API
View phoneid.sh
curl -X POST https://rest-api.telesign.com/v1/phoneid/<complete_phone_number> \
-d account_lifecycle_event="sign-in" \
-u "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / sms-otp.sh
Created Nov 19, 2017
cURL: Send an OTP SMS using TeleSign API
View sms-otp.sh
# 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"
@shikhirsingh
shikhirsingh / score.sh
Last active Nov 20, 2017
cURL: Get Fraud Risk Score of Phone Number using TeleSign's Score API
View score.sh
curl -X POST https://rest-api.telesign.com/v1/score/<complete_phone_number> \
-d account_lifecycle_event="sign-in" \
-u "CUSTOMER_ID":"API_KEY"
@shikhirsingh
shikhirsingh / sms-arn.sh
Last active Nov 19, 2017
cURL: Send an ARN SMS using TeleSign API
View sms-arn.sh
curl -X POST https://rest-api.telesign.com/v1/messaging \
-d phone_number=XXXXXXXX \
-d message="You have a dentist appointment at 2:15pm" \
-d message_type="ARN" \
-u "CUSTOMER_ID":"API_KEY"
You can’t perform that action at this time.