Vonage / vonage-php-code-snippets

PHP code examples for using Vonage APIs
MIT License
29 stars 55 forks source link

Unable to create application user for javascript sdk. #66

Closed ashish-negi closed 3 years ago

ashish-negi commented 3 years ago

I am trying to create a new user for browser in-app calling.

$client->user()->create([ "name" => $name, "display_name" => $display_name, ]);

But I am getting the following error:

Argument 1 passed to Vonage\User\Collection::setFilter() must be an instance of Vonage\Entity\Filter\FilterInterface, instance of Vonage\Client\Factory\MapFactory given

How to create a user using PHP SDK.