kloon / WooCommerce-REST-API-Client-Library

A PHP wrapper for the WooCommerce REST API
GNU General Public License v3.0
356 stars 175 forks source link

WooCommerce Basic auth goes wrong #116

Open wider2 opened 9 years ago

wider2 commented 9 years ago

Good day. This application is well enough, but... When I check connection with "print_r($client->index->get());" and it is look like correct http://www.kolco.net/wc-api/v2/?oauth_consumer_key=ck_81c506a555e110b13638992ed918df378107b8ac&oauth_timestamp=1440485024&oauth_nonce=fde55bbff5804c5465c3d4b69474fbe9819aa7c9&oauth_signature_method=HMAC-SHA256&oauth_signature=E9oPMC6SHN7q0bwR8BpCBB%2FL05aI1993g4GShoTEQA8%3D

But blank screen without json data returned with "print_r( $client->products->get() );" Is it normal !!!???

my test example http://www.kolco.net/wc-api/v2/products?oauth_consumer_key=ck_81c506a555e110b13638992ed918df378107b8ac&oauth_timestamp=1440485024&oauth_nonce=fde55bbff5804c5465c3d4b69474fbe9819aa7c9&oauth_signature_method=HMAC-SHA256&oauth_signature=E9oPMC6SHN7q0bwR8BpCBB%2FL05aI1993g4GShoTEQA8%3D

It is look like to impossible to get data from WooCommerce 2.4.x right now (:

pablophg commented 9 years ago

Having the exact same problem. Any workaround yet?

wider2 commented 9 years ago

we can only wait for the answer from the author of the library But I resolve this problem when add https protocol on my store But it is not the way out from the problem! many sellers prefer to work without https, with basic auth So waiting for author's response....

wider2 commented 9 years ago

ver 2.4.5 of WooCommerce

rebelholic commented 9 years ago

@wider2 Have you resolve it with v3?

wider2 commented 9 years ago

no, I am still working with ver. 2.4.5 but I use now https protocol and wc working well