Created
October 18, 2020 16:45
-
-
Save leadbi/aad240bde44fbdeb93ec174c77da95b2 to your computer and use it in GitHub Desktop.
LeadBI Form Webhook
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
fetch("https://capi.leadbi.com/forms/{replace_with_form_id}/submit", { | |
"headers": { | |
"content-type": "application/json", | |
}, | |
"body": "{\"first_name\":{\"value\":\"Andrei\",\"name\":\"first_name\",\"type\":\"first_name\"},\"last_name\":{\"value\":\"Tofan\",\"name\":\"last_name\",\"type\":\"last_name\"},\"email\":{\"value\":\"admin@leadbi.com\",\"name\":\"email\",\"type\":\"email\"},\"phone\":{\"value\":\"+00723232322132\",\"name\":\"phone\",\"type\":\"phone_number\"}}", | |
"method": "POST" | |
}); |
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
curl 'https://capi.leadbi.com/forms/{replace_with_form_id}/submit' \ | |
-H 'Content-Type: application/json' \ | |
--data-binary '{"first_name":{"value":"John","name":"first_name","type":"first_name"},"last_name":{"value":"Doe","name":"last_name","type":"last_name"},"email":{"value":"jd@leadbi.com","name":"email","type":"email"},"phone":{"value":"+9384937593","name":"phone","type":"phone_number"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment