Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Last active May 18, 2018 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewconnell/98768fb41f16d37b2c8bd5fc5d52698e to your computer and use it in GitHub Desktop.
Save andrewconnell/98768fb41f16d37b2c8bd5fc5d52698e to your computer and use it in GitHub Desktop.
const auth = {
token: '...', // get from your user settings in Drip admin
accountId: 007
};
const client = require('drip-nodejs')(auth);
const payload = {
subscribers:[{
email:'voitanosllc@contoso.com',
eu_consent:'granted'
}]
};
client.createUpdateSubscriber(payload)
.then((response)=>{
console.log(response.body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment