File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments