#cnguyen85

1 messages · Page 1 of 1 (latest)

rotund lavaBOT
rotund arrow
#

Hi

#

My request is this one

#

/code

#

I don't remember how to write curl code

granite glacier
#

As far as I know that looks correct - is something not working?

rotund arrow
#

It said

#

curl: (3) URL rejected: Malformed input to a URL function
zsh: command not found: -d
zsh: command not found: -d
zsh: command not found: -G

#

on Mac

granite glacier
#

That same command for me works fine on a mac - are you sure you're include a ":" at the end of your secret key?

rotund arrow
#

yes

#

??

granite glacier
#

Yeah I'm not sure what could be causing that then - this works for me:
curl https://api.stripe.com/v1/subscriptions -u sk_test_123: -d "expand[]"="data.customer" -d "created[gte]"=1692662400 -d "created[lte]"=1692890400 -G

rotund arrow
#

Now I have

granite glacier
#

Did you check that reqeust in your dashboard? You can see there that it's making a POST request, so the error you're seeing is expected because you'd only get data back from LIST request

rotund arrow
#

it works with you request in one line

#

what is the limit max ?

#

for one request ?