Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
integration:zapier-datafeed [2014/10/07 15:40] – Zapier Integration sparkwebintegration:zapier-datafeed [2018/11/26 20:27] (current) – [Zapier] marija
Line 16: Line 16:
 ====== Zapier ====== ====== Zapier ======
  
-<WRAP important round>+<WRAP center round important 90%> 
 +**We have implemented a different approach for Zapier.** In place of the following snippet, we now have [[v:2.0:webhooks|webhooks for Zapier (beta)]] feature in FoxyCart that allows you to pass the data from FoxyCart onto a whole stack of other services quickly and easily. Please see the "Zapier" section [[v:2.0:webhooks|here]]. This page will remain for reference.</WRAP> 
 + 
 + 
 +<WRAP center round important 90%>
 //**Please note:**// //**Please note:**//
 The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance. The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
Line 40: Line 44:
 $foxycart_api_key = ""; $foxycart_api_key = "";
  
-//You'll be presented with this url when setting up your Zapier integration+//You'll be presented with url when setting up your Zapier integration. Enter it here:
 $zapier_static_webhook_url = ""; $zapier_static_webhook_url = "";
  
Line 87: Line 91:
  //No JSON Returned  //No JSON Returned
  if (!is_array($json)) {  if (!is_array($json)) {
- die("Invalid Response: $response");+ die("Invalid Response: $result");
  
  //Failure  //Failure
  } elseif ($json['status'] != "success") {  } elseif ($json['status'] != "success") {
- die("Unsuccessful Status: $response");+ die("Unsuccessful Status: $result");
  
  //All Good!  //All Good!

Site Tools