ringcentral / ringcentral-php

RingCentral Connect Platform PHP SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dinamic opened this issue Β· comments

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?