Skip to content

Instantly share code, notes, and snippets.

@arthurio arthurio/Bronto referral
Last active Aug 29, 2015

Embed
What would you like to do?
Javascript snippet to call the Bronto referral API
PT.api.call('/bronto/referral', {
method: 'post',
data: {
message: 'Example of message',
emails: ['example1@punchtab.com', 'example2@punchtab.com']
// OR emails: 'example1@punchtab.com,example2@punchtab.com'
},
success: function (response) {
console.log('OK');
},
error: function (response) {
console.log('Not OK', response);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.