Skip to content

Confused about v3 batch operations #26

Description

@pensierinmusica

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions