Last active
March 1, 2017 23:29
-
-
Save raelgc/d8fef0fbadcbe6175942abe77db07db5 to your computer and use it in GitHub Desktop.
CloudSponge Webhook + Zapier Example
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
<!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