question

Rajan avatar image
Rajan asked

How to download csv file using CURL from downlaod URL given by GetDataReport Admin API.,

We are using Get Data Report Admin API to get report data. We are able to get download URL of CSV file but when we are downloading CSV file using CURL we are getting corrupted file while we are able to donwload same CSV file via browser properly. We have tried passing browser agent as user-agent in CURL request but no luck.

,

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

When the URI contains parameters, you need to add quotes for it. The code could be something like this. Could you please try it? If it can’t solve the issue, could you please provide more details such as your development environment and the command you used?

curl 'https://playfabreportsprod.blob.core.windows.net/pfreportblobstore/[YourTitleId]/[Date]/RollingThirtyDayOverviewReport.csv?sv=2019-02-02&sr=b&sig=JxosqAmIb%2BGYrtgeOL5BToRKS%2FKC5RnkEVpqz5CwU%2Bg%3D&st=2021-04-28T08%3A10%3A21Z&se=2021-04-29T08%3A15%3A21Z&sp=r'
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.