Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused about v3 batch operations #26

Open
pensierinmusica opened this issue Mar 1, 2020 · 0 comments
Open

Confused about v3 batch operations #26

pensierinmusica opened this issue Mar 1, 2020 · 0 comments

Comments

@pensierinmusica
Copy link

Hi,

The docs say:

batch endpoints will now only need you to pass an array of objects as:

payload = [
  {
    email: 'user@example.com',
    action: 'Purchased'
  },
  {
    email: 'user@example.com',
    action: 'Purchased'
  }
]
// client.recordBatchEvents(payload, ...)

But looking at the source code, it seems that the program searches for a payload.batches property:

https://github.com/DripEmail/drip-nodejs/blob/master/lib/subscribers.js#L89

Can you please clarify?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant