"returns at least three items" 在 IFTTT 中测试失败

Test fail in IFTTT with "returns at least three items"

我正在创建自己的服务,但在此处的端点测试失败并显示此错误: "returns 至少三项"

这个错误来自触发器部分。

有人可以分享一个包含三个项目的输出示例值吗?请帮忙

IFTTT 期望您发送至少 3 个结果项,跳过只需使用不同 ID 克隆同一对象两次。

来自常见问题部分;

My service fails the returns at least three items endpoint test. Why does IFTTT require three items? We require three items during the testing phase to make sure your API behaves like a timeline of events, not a state engine.

This requirement might seem strange when you think of your integration with IFTTT as something that is entirely realtime in nature, like “IF Button Pressed, THEN Turn On Lights”— what good would come from anything but the current state of the button?

But what about the Applet “IF Button Pressed, THEN Log to Spreadsheet”? In this case it would be important to store and return multiple event items because there is no guarantee that we’ll call your API (even with the Realtime API) at the moment the event occurs.

By keeping and returning a list of events, IFTTT users are more assured they won’t miss a thing.