Skip to content

Instantly share code, notes, and snippets.

@raelgc
Last active March 1, 2017 23:29
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 raelgc/d8fef0fbadcbe6175942abe77db07db5 to your computer and use it in GitHub Desktop.
Save raelgc/d8fef0fbadcbe6175942abe77db07db5 to your computer and use it in GitHub Desktop.
CloudSponge Webhook + Zapier Example
<!DOCTYPE html>
<html>
<head>
<!--
Include the script anywhere on your page, usually in the head
(don't forget to replace `localhost-only` with your own CloudSponge Widget Key)
-->
<script src="//api.cloudsponge.com/widget/localhost-only.js"></script>
<script>
cloudsponge.init({
webhooks: {
/**
* Replace `https://example.com/afterSubmitContacts` with your URI to receive posted data
* This URI will receive a JSON with the following JSON payload:
* {
* contacts: <contact-objects-array>,
* source: <source>,
* owner: <owner>
* }
*/
afterSubmitContacts: 'https://example.com/afterSubmitContacts'
}
};
</script>
</head>
<body>
<form>
<a class="cloudsponge-launch">Launch Widget</a>
<textarea class="cloudsponge-contacts"></textarea>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment