Misguiding PHP example for sending REST API requests
xxxdepy opened this issue · 1 comments
xxxdepy commented
Under the PHP examples the latest doc uses $woocommerce->post/get/put
etc method which doesn't even exist.
<?php
print_r($woocommerce->get('data/currencies/current'));
?>
claudiosanches commented
Hello @xxxdepy
Those exists if you install our PHP library as indicated in our documentation: https://woocommerce.github.io/woocommerce-rest-api-docs/?php#libraries-and-tools