Skip to content

Commit a227ace

Browse files
committed
Docs
1 parent 7ea8056 commit a227ace

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@ $options = [
8383
'client' => new CustomOpenTokClient(),
8484
'timeout' => 10,
8585
]
86+
$opentok = new OpenTok($apiKey, $apiSecret, $options);
87+
```
88+
#### Migrating to Vonage Video API
89+
90+
There is some useful behaviour on initialization in this SDK that will help as a stopgap before switching out from the
91+
legacy TokBok API to the new, Vonage Video API. To do this, you add a `private_key_path` and
92+
`application_id` into the `$options`. Note that the SDK will read the private key path from the root directory of
93+
the SDK, so you will need to adjust the directory structures accordingly.
94+
95+
```php
96+
use OpenTok\OpenTok;
97+
use MyCompany\CustomOpenTokClient;
98+
99+
$options = [
100+
'application_id' => 'your_application_id',
101+
'private_key_path' => './path-to-your.key'
102+
]
103+
86104
$opentok = new OpenTok($apiKey, $apiSecret, $options);
87105
```
88106

0 commit comments

Comments
 (0)