Information: For more information, visit the TeleSign website or the TeleSign Developer Portal.
Author: Telesign Corp.
TeleSign web services conform to the REST Web Service Design Model. Services are exposed as URI-addressable resources through the set of RESTful procedures in our TeleSign REST API.
The TeleSign PHP SDK is a PHP library that provides an interface to TeleSign web services.
You will need a Customer ID and API Key in order to use TeleSign’s REST API. If you are already a customer and need an API Key, you can generate one in TelePortal. If you are not a customer and would like to get an API Key, please contact support@telesign.com.
You supply your credentials to the API by passing them in during class initialization.
>>>
$customer_id = "CUSTOMER_ID_GOES_HERE";
$secret_key = "SECRECT_KEY_GOES_HERE";
$verify = new Verify($customer_id, $secret_key);
With just two classes, telesign.api abstracts much of the complexity of the TeleSign REST API.
Here's a basic code example.
>>>
$customer_id = "CUSTOMER_ID_GOES_HERE";
$secret_key = "SECRECT_KEY_GOES_HERE";
$verify = new Verify($customer_id, $secret_key);
$ret = $verify->call("13103409700");
print_r($ret);
{"reference_id":"013C8CC050DF040BE4D412D700002101","resource_uri":"/v1/verify/013C8CC050DF040BE4D412D700002101","sub_resource":"call","errors":[],"status":{"updated_on":"2013-01-30T18:37:59.444100Z","code":103,"description":"Call in progress"},"verify":{"code_state":"UNKNOWN","code_entered":""}}
Detailed documentation for TeleSign™ REST APIs is available in the Developer Portal.
The easiest way to run the tests is to install phpunit Tests are located in the test/ directory.
For more information about the Phone Verify and PhoneID Standard services, please contact your TeleSign representative:
Email: support@telesign.com