Skip to content

Instantly share code, notes, and snippets.

@barrycarton
Forked from Jdoyle112/Subscribe.js
Created June 24, 2021 11:23
Show Gist options
  • Select an option

  • Save barrycarton/ffe834af29293d47b5778cf6a08c00c2 to your computer and use it in GitHub Desktop.

Select an option

Save barrycarton/ffe834af29293d47b5778cf6a08c00c2 to your computer and use it in GitHub Desktop.
const header = {
headers: {'api-key': 'XXXXXXXXXXXXXXXXXXXX'}
};
axios.post('https://api.sendinblue.com/v3/contacts', {
listIds: ['4'],
email: this.state.inputVal
}, header).then(function(res){
console.log(res);
}).catch(function(error){
console.log(error)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment