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

Incorrect documentation for subscribeToCampaign #33

Open
dawsbot opened this issue Jul 22, 2020 · 3 comments
Open

Incorrect documentation for subscribeToCampaign #33

dawsbot opened this issue Jul 22, 2020 · 3 comments

Comments

@dawsbot
Copy link

dawsbot commented Jul 22, 2020

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",
                },
            ],
 }
@PerlBug
Copy link

PerlBug commented Oct 27, 2020

Same error here

@GuttermanA
Copy link

Seems to be true for recordEvent as well. Docs say it accents an array of events but really it only accepts a single event object.

@dawsbot
Copy link
Author

dawsbot commented Dec 4, 2020

@DripEmail it's been quite a while since this has been opened and seems accurate. Thoughts?

Top three contributors are @samudary @blangenfeld @pieterjandesmedt , but this project appears abandoned:

image

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

3 participants