使用REST API从Woocommerce获取所有产品 [英] Get all products from Woocommerce using REST API

查看:568
本文介绍了使用REST API从Woocommerce获取所有产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用rest api检索所有产品.我已阅读问题.我正在用邮递员打电话.这是我的查询

I am trying to retrieve all products using rest api. I have read this question. I am using postman to make calls. Here is my query

https://squatwolf.com/wp-json/wc/v2/products?filter[posts_per_page] =-1

查询仅显示10条结果.

The query shows only 10 results.

推荐答案

我能够使用以下解决方案找到数据,

I was able to find the data using the following solution,

https://squatwolf.com/wc-api/v3/products?filter[limit] =-1

这篇关于使用REST API从Woocommerce获取所有产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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