In order to run an OpenTok application in the browser, you need to get an OpenTok session ID and token from a server that uses one of the OpenTok server-side SDKs.
The basic tutorial uses a web service that uses the OpenTok PHP SDK to generate the OpenTok session ID and token. The Learning OpenTok PHP repo includes code for setting up this web service.
However, to test this tutorial, you do not need to have a PHP server environment set up. You can deploy the tutorial web service on Heroku. Heroku is a PaaS (Platform as a Service) that can be used to deploy simple and small applications for free. To easily deploy the Learning OpenTok PHP web service to Heroku, sign up for a Heroku account and click this button:
Heroku will prompt you to add your OpenTok API key and secret. Log in to your TokBox Account and find them on the Project Page.
The Learning OpenTok PHP web service handles the following API calls:
You can also install this repository on your own PHP server. See the instructions at the Learning OpenTok PHP repo.