Before you can test the application, you need to set up a web service to handle some OpenTok-related API calls. The web service securely creates an OpenTok session.
The Learning OpenTok PHP repo includes code for setting up a web service that handles the following API calls:
"/session" — The iOS client calls this endpoint to get an OpenTok session ID, token, and API key.
"/start" — The iOS client calls this endpoint to start recording the OpenTok session to an archive.
"/stop" — The iOS client calls this endpoint to stop recording the archive.
"/view" — The iOS client loads this endpoint in a web browser to display the archive recording.
The HTTP GET request to the /session endpoint returns a response that includes the OpenTok session ID and token.
Download the repo and run its code on a PHP-enabled web server. You can also deploy and run the code on Heroku (so you don't have to set up your own PHP server). See the readme file in the learning-opentok-php repo for instructions.