使用 Stripe API,我希望能够查询日期范围,或者如果不行的话,查询某个任意日期之后或之前的日期。
我知道可以查询基于精确日期的东西,例如:
https://api.stripe.com/v1/events?created=1336503409
但是我想要类似于这样的东西...
# Search for events where `created` is greater than the epoch time: 1336503400
https://api.stripe.com/v1/events?created__gt=1336503400
Stripe::Charge.all(limit: 100, 'created[lt]' => timestamps, 'created[gte]' => timestamps })
。 - Deepesh Thapa