来宾用户的 WooCommerce REST API [英] WooCommerce REST API for guest users

查看:65
本文介绍了来宾用户的 WooCommerce REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取类别列表、产品列表并添加到购物车,而无需从我的 WooCommerce 商店登录.

I want to get category list, product list and add to cart without login from my WooCommerce store.

根据 WooCommerce API,我们必须生成 在访问任何 API 之前,消费者密钥消费者秘密.根据我的理解,Consumer Key 和 Consumer Secret 不可用.

As per WooCommerce API, we have to generate Consumer Key and Consumer Secret before accessing any API. As per my understanding Consumer Key and Consumer Secret is not available.

请告诉我如何从我的 WooCommerce 商店获取数据?

Please let me know how can I get data from my WooCommerce store?

谢谢.

推荐答案

如果没有密钥和秘密,您将无法访问 API.否则,您将能够访问您喜欢的任何商店.

You can't access the API without key and secret. Otherwise you would be able to access any shop you like.

您可以在 WooCommerce 商店的设置中生成它们:https://docs.woocommerce.com/document/woocommerce-rest-api/

You can generate them in the settings of your WooCommerce Shop: https://docs.woocommerce.com/document/woocommerce-rest-api/

这篇关于来宾用户的 WooCommerce REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆