Dokan Rest API返回401错误,问题在哪里?
根据Dokan文档,我在Dokan API中使用WooCommerce API cumputer_key和consumer_secret,但它返回“ REST_FORBIDDING”状态401错误,而使用WooCommerce API时没有任何问题。
我使用以下端点:
第一个返回401错误和第二个返回JSON响应。
https://...com/wp-json/dokan/v1/products/123/?computer_key = ...& computer_secret = ... https://...com/wp-json/wc/v3/products/123/?computer_key = ...& computer_secret = ...
问题在哪里?有人可以帮忙吗?
Based on Dokan documents, I use woocommerce API consumer_key and consumer_secret in Dokan APIs, but it returns "rest_forbidden" status 401 error, while there is not any problem when use woocommerce APIs.
I use following endpoints:
the first one return 401 error and second one return json responses.
https://....com/wp-json/dokan/v1/products/123/?consumer_key=...&consumer_secret=...
https://....com/wp-json/wc/v3/products/123/?consumer_key=...&consumer_secret=...
Where is the problem? can any one help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在Dokan文档中没有发现您可以使用WooCommerce REST凭据。
但是这个过滤器可能有可能
I didn't find in the Dokan documentation that you can use WooCommerce Rest credentials.
But it is possible with this filter