Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Proxy Participant Creation Outdated #604

Closed
dikirill opened this issue Feb 7, 2018 · 1 comment · Fixed by #605
Closed

Proxy Participant Creation Outdated #604

dikirill opened this issue Feb 7, 2018 · 1 comment · Fixed by #605

Comments

@dikirill
Copy link

dikirill commented Feb 7, 2018

Hi,
You have wrong function signature in this code:

api-snippets/proxy/quickstart/create-participant/create-participant.5.x.php

participants->create()

has now 2 parameters, please update example (https://www.twilio.com/docs/api/proxy/proxy-sms-voice-phone-call-quickstart?code-sample=code-create-a-participant&code-language=php&code-sdk-version=5.x)

Also uniqueName replaced with friendlyName.

Thanks

@dikirill
Copy link
Author

dikirill commented Feb 8, 2018

@joliveros
Your changes are incorrect. Method create() now has 2 parameters
public function create($identifier, $options = array())
If your changes you started using wrong proxyIdentifier option.
Please review your changes again. It has to be like this:

$client = new Client($sid, $token);
$session = $client
    ->proxy
    ->services("KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->sessions("KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->participants->create("+15558675310",
        array(
            "friendlyName" => "Alice"
        )
    );

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant