Skip to content

Confused about v3 batch operations #26

@pensierinmusica

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions