Last active
August 29, 2015 14:09
-
-
Save benhowes/9f13a946b10d5acfba64 to your computer and use it in GitHub Desktop.
Zapier Webhook posting
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
<?php | |
$params = array( | |
'name' => 'Erlich Bachman', | |
'email' => '[email protected]', | |
}); | |
//send Zapier webhook | |
$response = drupal_http_request('https://zapier.com/hooks/catch/.../', array( | |
'headers' => array('Content-Type' => 'application/json', 'Accept' => 'application/json'), | |
'method' => 'POST', | |
'max_redirects' => 1, | |
'data' => drupal_json_encode($params), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment