Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Carted commented on New product webhook POST ... ????

$
0
0

Peter,

Shopify doesn't send POST variables instead it sends a json object to the body. You can read this in PHP with something such as

$entityBody = file_get_contents('php://input');

You can then json decode it in to a variable with

$jsonBody = json_decode($entityBody);

Thanks,

Ryan

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>