FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

xdrew/php_telesign: Php TeleSign SDK · GitHub

 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleSign

Info:For more information, visit the TeleSign web site. For the latest source code, visit the TeleSign github repository.
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 the Client Portal. 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);

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 Client 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: support@telesign.com

About

Php TeleSign SDK

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL