擅长:python、mysql、java
<p>在这里,最好的办法是在从API中检索<code>disputes</code>的完整列表之后在本地进行过滤。使用<a href="https://stripe.com/docs/api/pagination/auto?lang=python" rel="nofollow noreferrer">auto-pagination</a>,这可以简单到:</p>
<pre><code>disputes = stripe.Dispute.list(limit=3)
for dispute in disputes.auto_paging_iter():
if (dispute.status == 'needs_response'):
# Do something with the dispute
</code></pre>
<p>作为一个推广,如果它不在<a href="https://stripe.com/docs/api/disputes/list" rel="nofollow noreferrer">arguments list for that resource</a>中,那么您只需要在本地进行进一步的过滤。你知道吗</p>