getbrevo / brevo-node

A fully-featured JavaScript API client to interact with Brevo.
https://developers.brevo.com/
ISC License
63 stars 8 forks source link

Support for updating multiple choice attributes #39

Open wug-ge opened 1 month ago

wug-ge commented 1 month ago

Hi!

In the current version, updating multiple choice attributes doesn't work. (https://developers.brevo.com/reference/updateattribute) I found 2 issues which would have to be changed:

I'm happy to create a pull request if needed as well :)

Thanks!

wug-ge commented 1 month ago

Same issue with listing Attributes, this is the JSON returned from the API:

{ "name": "FORM", "category": "normal", "type": "multiple-choice", "multiCategoryOptions": [ "option1", "option2", "option3", "option4" ] }

and this is the content of the object: GetAttributesAttributesInner { name: 'FORM', category: 'normal', type: 'multiple-choice', enumeration: undefined, calculatedValue: undefined }

wug-ge commented 1 week ago

Any updates on this? Given sib-api-v3-sdk is deprecated...