drip-nodejs icon indicating copy to clipboard operation
drip-nodejs copied to clipboard

Incorrect documentation for subscribeToCampaign

Open dawsbot opened this issue 5 years ago • 3 comments

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

dawsbot avatar Jul 22 '20 19:07 dawsbot

Same error here

PerlBug avatar Oct 27 '20 04:10 PerlBug

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.

GuttermanA avatar Dec 03 '20 20:12 GuttermanA

@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

dawsbot avatar Dec 04 '20 22:12 dawsbot