Last active
August 29, 2015 14:01
-
-
Save arthurio/6204a95bd3f33eacc57d to your computer and use it in GitHub Desktop.
Javascript snippet to call the Bronto referral API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PT.api.call('/bronto/referral', { | |
method: 'post', | |
data: { | |
message: 'Example of message', | |
emails: ['[email protected]', '[email protected]'] | |
// OR emails: '[email protected],[email protected]' | |
}, | |
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