getbrevo / brevo-php

A fully-featured PHP API client to interact with Brevo.
https://developers.brevo.com/
MIT License
51 stars 23 forks source link

createContact listIds type #15

Closed chucklin72 closed 1 year ago

chucklin72 commented 1 year ago

in the documentation its stating an array. The API is requiring an int.

chucklin72 commented 1 year ago

[400] Client error: POST https://api.brevo.com/v3/contacts resulted in a 400 Bad Request response: {"code":"invalid_parameter","message":"listIds/0 should be type number"} when you put in a number it says [400] Client error: POST https://api.brevo.com/v3/contacts resulted in a 400 Bad Request response: {"code":"invalid_parameter","message":"listIds should be type array"} Screenshot 2023-10-25 at 7 41 48 PM

chucklin72 commented 1 year ago

wrapped intval in the array value