Giter Club home page Giter Club logo

php_telesign's Introduction

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]

php_telesign's People

Contributors

hmorales avatar hmorales-ts avatar jjergus avatar phplicengine avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.