Skip to content

Incorrect documentation for subscribeToCampaign #33

@dawsbot

Description

@dawsbot

On https://developer.drip.com/?javascript#subscribe-someone-to-a-campaign it shows that client.subscribeToCampaign takes in an array of subscribers. Unfortunately, it only takes one subscriber.

❗️ Wrong

image

✅ Right

image

More Notes

If you use what the documentation describes, you'll get an HTTP 402 error stating:

{
            errors: [
                {
                    code: 'parsing_error',
                    message:
                        "JSON parsing error: The property '#/' of type object did not match one or more of the required schemas",
                },
            ],
 }

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