Stripe.net ライブラリを使用して、Stripe API に対して呼び出しを行っています。
さまざまなプランのサブスクライバーの総数を取得したいと考えていますが、現在の API や Stripe.NET ライブラリでこれが可能かどうかはまったくわかりません。
これが可能かどうかについて、誰かが洞察を提供できますか?
Stripe.net ライブラリを使用して、Stripe API に対して呼び出しを行っています。
さまざまなプランのサブスクライバーの総数を取得したいと考えていますが、現在の API や Stripe.NET ライブラリでこれが可能かどうかはまったくわかりません。
これが可能かどうかについて、誰かが洞察を提供できますか?
これを .NET 用に実装していることは理解していますが、Ruby の実装例を次に示します。
limit = 100
last_customer = nil
while limit == 100 do
customers = Stripe::Customer.list(limit: limit, starting_after: last_customer)
# Do stuff to with customers
# the list is in customers.data
# save the last customer to know the offset
last_customer = customers.data.last.id
end
end