#kkkkkkkkkkkkkkkkkkkkkd - Reports

1 messages · Page 1 of 1 (latest)

magic ermine
robust lava
#

There are no requests created on my DB for this.

#

The code I'm using is simple: puts Stripe::Reporting::ReportType.retrieve(
'frr_xxx',
)

viral skiff
#

frr_123 is a ReportRun not a ReportType

#

you're using the wrong API

robust lava
#

Great. Also, I see the associated csv filename in the format frr_xxx.csv. Do you have the curl syntax that downloads this file?

viral skiff
#

it's just a URL so you'd download it the same way you download any file. I don't know of a specific curl syntax sorry

robust lava
#

Ok, I am entering the URL straight into the address bar and I am prompted for a username and password. I imagine the password is my Stripe password but what would the username be?

viral skiff
#

it shows the curl command for the file content

robust lava
#

Yes, I was able to get that command to work but it simply prints the file contents to the command prompt. Is there a way to download the csv file?

viral skiff
#

it's just curl

#

curl in a terminal just outputs the content. You can redirect the output to a file for example via > my_file.csv