在 Workato 的自定义 sdk 中尝试以下代码
poll: lambda do |connection, input, last_updated_at|
per_page = 1
last_updated_at = (last_updated_at || input['since']).to_time.utc.iso8601
candidates = get("https://api.stripe.com/v1/customers")
last_updated_at = candidates.last["created"] unless candidates.blank?
在以下行为#Hash:0x00007f303593d6d8 获取错误未定义方法“last”: