#jefskoa_api

1 messages ยท Page 1 of 1 (latest)

twilit sunBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1440079549063757976

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

proven arrow
#

hello, can you pls be more specific?

1/ I want to understand what you're trying to do, as what you stated isn't clear to me

2/ can you share clear request IDs for what you're seeing, vs what you want to happen?

that will help me get oriented

umbral cobalt
twilit sunBOT
finite coral
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. I don't think that's possible, but let me double check.

#

Hm, I was mistaken, that should be supported. Are you getting an error, or just not the results you're expecting?

umbral cobalt
#

It does not error. It only gives me the last event though. If I switch the type around ask have reporting.report_run.suceeded last, then I get those.

#

Ah, I thought types was only avail in v2

finite coral
#

I think that'll work, but let me know if it doesn't, happy to keep looking.

umbral cobalt
#

You got an example of that being passed as &types= ?

finite coral
#

Ah, like you have to build the URL yourself?

#

think you need to use types[]=

umbral cobalt
#

Yes, I do need to build the URL call programmatically, so syntax will be important as I believe there are diff options.

#

So, what you imply above is ...v1/events/types[]= but then do you know if it is a comma separated string or special encoding required?

#

This is the example I did find for Stripe, I think: ?types[]=one.one&types[]=two.two

#

aha! That's it. You got me going and it works!

finite coral
#

I'm pretty sure you pass types[]= with the type for each Event type you want to filter for. So two event types woul dhave two types[] params. I use the expand syntax as an example of passing arrays for cURL:
https://docs.stripe.com/api/expanding_objects

#

Woohoo, glad to hear that did the trick!

umbral cobalt
#

Super fast help and deeply appreciated!

finite coral
#

Anytime, happy to help!

umbral cobalt
#

Do you know if there is a limit or just bad behavior when a client calls APIs "a lot"?

#

I can explain a bit more why I'm asking the question if needed.