ringcentral / ringcentral-php

RingCentral Connect Platform PHP SDK
MIT License
54 stars 52 forks source link

trying to filter extension list results in an error with urlencode() #96

Open dinamic opened 3 years ago

dinamic commented 3 years ago

Hey guys 👋

I'm trying to listExtensions by filter on one or multiple types. As explained in the documentation, I need to be using an array to do that, but the SDK doesn't seem to support that.

Should I try to use an array, I get an error message:

urlencode() expects parameter 1 to be string, array given {"exception":"[object] (ErrorException(code: 0): urlencode() expects parameter 1 to be string, array given at vendor/ringcentral/ringcentral-php/src/Http/Client.php:132)

#1 vendor/ringcentral/ringcentral-php/src/Http/Client.php(132): urlencode()
#2 vendor/ringcentral/ringcentral-php/src/Http/Client.php(92): RingCentral\\SDK\\Http\\Client->parseProperties()
#3 vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(326): RingCentral\\SDK\\Http\\Client->createRequest()

It feels like a bug to me, but maybe I don't know enough about the SDK.

Could you give me an example of how to do this?