阅读背景:

如何使用HTTPS(Basic Auth)使用Woocommerce API进行身份验证

来源:互联网 

I am using the WooCommerce-REST-API-Client-Library-v2 and attempting a simple get orders call. I have no problem establishing a connection to my test server over http, but when I attempt to connect to a production server using https I receive an Invalid JSON returned error in the response. Secure checkout is enabled in woocommerce settings. I have tried with and without base64_encoding the credentials. Can someone please tell me what I am doing wrong or provide an example of the proper formatting to authenticate over HTTPS using WooCommerce-REST-API-Client-Library-v2. Here is my code. Thanks!I am using the WooCommerce-REST-API-Client-Libr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: