brevo-php
brevo-php copied to clipboard
GetSegments problem
Hello,
I want to geSegments via ContactsAPI, but when i call this function, i get :
{ 'segments': {}, // empty array 'count': 33 // ok and it is really the total number of segments }
When i pass without the function of lib, i get the segments with parameters.
Can you resolve it ? Thank you !
To fix this: In lib/Model/GetSegments.php:60:
protected static $swaggerTypes = [
'segments' => '\Brevo\Client\Model\GetSegmentsSegments',
'count' => 'int'
];
replace \Brevo\Client\Model\GetSegmentsSegments by object[]
protected static $swaggerTypes = [
'segments' => 'object[]',
'count' => 'int'
];
Feel free to make a PR but it looks like this repo is not really maintained...
Issue has been fixed in this tag https://github.com/getbrevo/brevo-php/releases/tag/v2.0.14