klaviyo / klaviyo-api-node

Node sdk for the Klaviyo API
56 stars 17 forks source link

getProfiles API inconsistent name #87

Open fbahacker21 opened 5 days ago

fbahacker21 commented 5 days ago

When I try to use the getProfiles API, the return object looks like this:

"data": [ { type: 'profile', id: '1234', attributes: { "firstName": "Sarah" "lastName": "Mason"} }]

while the api doc saying it should be:

"data": [ { "type": "profile", "id": "01GDDKASAP8TKDDA2GRZDSVP4H", "attributes": { "first_name": "Sarah", "last_name": "Mason"} }]

BrandonKlaviyo commented 4 days ago

Hi there, thanks for writing in. This looks to be expected behavior as we mention in our readme that camel case is used instead of the names you would typically see without the SDK per the Namespace section: https://github.com/klaviyo/klaviyo-api-node?tab=readme-ov-file#namespace