Skip to content

Incorrect documentation for subscribeToCampaign #33

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",
                },
            ],
 }

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