简体   繁体   English

下载CSV文件生成的播放器导出 - OneSignal

[英]Download CSV file generated players export - OneSignal

How do I download the csv generated by this route: https://onesignal.com/api/v1/players/csv_export?app_id= 如何下载此路由生成的csv: https//onesignal.com/api/v1/players/csv_export?app_id =

-I am able to get the s3 link of the file. - 我能够获得该文件的s3链接。

-I do a Get Request on the CSV file. - 我在CSV文件上执行获取请求。 I have tried using the same headers / authorization as the csv_export route and removing it to no avail. 我尝试使用与csv_export路由相同的标头/授权并将其删除无效。


w/ the basic auth set: w /基本身份验证集:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidArgument</Code><Message>Unsupported Authorization Type</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>Basic SOME_KEY_THAT_WORKS_WITH_THE_ROUTE</ArgumentValue><RequestId>SOME_REQUEST_ID</RequestId></Error>

w/ the basic auth removed: 删除基本身份验证:

?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>SOME_REQUEST_ID</RequestId></Error>

The export file may take a few minutes to generate depending on its size. 导出文件可能需要几分钟才能生成,具体取决于其大小。 You should keep trying until you no longer get an error. 您应该继续尝试,直到不再出现错误。 No authorization is required to download the file. 下载文件无需授权。

If it has been longer than 15 minutes and the file is still not available, you should get in touch with OneSignal's support team. 如果时间超过15分钟且文件仍然不可用,您应该与OneSignal的支持团队联系。

From OneSignal Support, the link returned with that initial route returns the proper url now: 从OneSignal支持,使用该初始路由返回的链接现在返回正确的URL:

|Hi there. |你好。 We found a bug in our system that returned the wrong CSV url in some cases. 我们发现系统中的一个错误在某些情况下会返回错误的CSV网址。 Sorry for the inconvenience. 抱歉给你带来不便。 This issue is now resolved so you should get a valid URL. 此问题现已解决,因此您应该获得有效的URL。 You can then download the CSV export without any special headers. 然后,您可以下载CSV导出,而无需任何特殊标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM