An example PHP website that uses the Swisscom Token Validation API to validate a user's mobile phone number before allowing them to reserve a table at a fictional restaurant. | Read-only mirror of https://github.com/swisscom-developer/sms-token-validation-example — Swisscom. Issues & pull requests at the source.
  • PHP 81.5%
  • Hack 17.7%
  • CSS 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-04-25 11:05:58 +02:00
css Inital commit of example application. 2013-11-07 15:37:28 +01:00
includes Inital commit of example application. 2013-11-07 15:37:28 +01:00
about.php Inital commit of example application. 2013-11-07 15:37:28 +01:00
favicon.ico Inital commit of example application. 2013-11-07 15:37:28 +01:00
index.php Inital commit of example application. 2013-11-07 15:37:28 +01:00
README.md Changed another .ch to .com 2014-04-25 08:25:29 +02:00
send_token.php Comma added & strange comment added. 2013-12-05 18:07:52 +01:00
settings.ini STV aktualisiert 2014-04-25 11:05:58 +02:00
validate_token.php STV aktualisiert 2014-04-25 11:05:58 +02:00
validate_token_form.php Inital commit of example application. 2013-11-07 15:37:28 +01:00

Swisscom SMS Token Validation Example

An example PHP website that uses the Swisscom Token Validation API to validate a user's mobile phone number before allowing them to reserve a table at a fictional restaurant.

For more information on how to use this example, go to:

https://developer.swisscom.com

Getting Started

You should already have a PHP environment setup on your local machine. Check out this code from the GitHub repository into the web application document root.

The home page (index.php) should be accessible, but in order to send calls to the Swisscom API, you need to register and get an application key by registering at:

https://developer.swisscom.com

See the getting started section for more information on how to get an API key.

Once you have your API Key, add the key to the settings.ini file.

Note: For SMS Token Validation API, the API secret is not used, only the key.