Skip to content

The TeleSign PHP SDK lets you easily integrate with our REST API.

License

Notifications You must be signed in to change notification settings

phplicengine/php_telesign

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleSign

Information: For more information, visit the TeleSign website or the TeleSign Developer Portal.

Author: Telesign Corp.

TeleSign Web Services: PHP SDK

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.

Authentication

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 [email protected].

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);

The PHP Classes

With just two classes, telesign.api abstracts much of the complexity of the TeleSign REST API.

PHP Code Example: To Verify a Call

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":""}}

Documentation

Detailed documentation for TeleSign™ REST APIs is available in the Developer Portal.

Testing

The easiest way to run the tests is to install phpunit Tests are located in the test/ directory.

Support and Feedback

For more information about the Phone Verify and PhoneID Standard services, please contact your TeleSign representative:

Email: [email protected]

About

The TeleSign PHP SDK lets you easily integrate with our REST API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%