buse974 / zopentok
Zend Module for OpenTok
Installs: 3 227
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.4
- fabpot/php-cs-fixer: *
- opentok/opentok: 2.2.x
This package is auto-updated.
Last update: 2024-10-16 00:47:00 UTC
README
Zend Module for OpenTok
Install
###Params###
array( 'zopentok-conf' => array( /** * api key opentok */ 'api_key' => 'xxxxxxxx', /** * api secret opentok */ 'api_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'expire_time' => <number>, /** * Adapter Http Client * */ 'adapter' => 'http-adapter', ), 'http-adapter' => array( 'adapter' => 'Zend\Http\Client\Adapter\Proxy', 'proxy_host' => 'proxy.name.com', 'proxy_port' => 8000, 'proxy_user' => 'buse974', 'proxy_pass' => 'zopentok' ))
Add this configuration in ./config/autoload directory from your project.
Samples
$m_zopentok = $this->container->get('opentok.service'); $session = $m_zopentok->createSession(); $token = $m_zopentok->createToken(); $session_id = $m_zopentok->getSessionId();