getLists fail if only one list exist

L4marketing

New Member
Hello
Im using the API and when using the following code, i get no lists, even having one list created:

$endpoint = new MailWizzApi_Endpoint_Lists();
$response = $endpoint->getLists($pageNumber = 1, $perPage = 10);


which returns :

[body] => MailWizzApi_Params Object
(
[_data:MailWizzApi_Params:private] => Array
(
[status] => success
[data] => Array
(
[count] =>
[total_pages] =>
[current_page] =>
[next_page] =>
[prev_page] =>
[records] => Array
(
)

)

)

[_readOnly:MailWizzApi_Params:private] =>
)

[request] =>
[_httpCode:MailWizzApi_Http_Response:private] => 304
)

If i create a second list, all works perfectly.

Can anyone help?

Thanks
 
Back
Top