WooCommerce订阅REST API-通过date_modified限制响应

问题描述

我正在使用WC Subscriptions REST API在给定日期之后列出所有带有“ date_modified”的订阅。 “ date_modified”是订阅属性。

我试图使用“ filter”参数来执行此操作,但无法使其正常工作。此处列出了过滤器参数,但没有使用示例:https://prospress.github.io/subscriptions-rest-api-docs/#list-all-subscriptions

我尝试在邮递员上使用此参数设置,但是即使在此日期之后有date_modified的订阅,它也会返回一个空数组:

filter[meta_query][0][compare]=AFTER
filter[meta_query][0][type]=DATETIME
filter[meta_query][0][key]=date_modified
filter[meta_query][0][value]=2020-08-01T00:00:00

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...