App Store Connect API请求销售报告

时间:2019-03-07 03:50:55

标签: itunesconnect appstoreconnect

App Store connect api请求curl销售报告。

以下是根据Apple指南的请求地址。

curl -v -H 'Authorization: Bearer [token]' 
"https://api.appstoreconnect.apple.com/v1/salesReports?filter\ 
[frequency\]=DAILY&filter\[reportDate\]=2019-02-01&filter\ 
[reportSubType\]=SUMMARY&filter\[reportType\]=SALES&filter\ 
[vendorNumber\]=86890785&filter\[version\]=1_0"

根据指南,通常会获得“用户”信息,但销售报告会出现乱码,并且会做出回应。

 ?p?\?{~7[?.?????j???????p?????E?????q6?}?|?/???{?]???z??O?fϫ??s???<?W?????w;?ݽ??g?????t5?U????O?7?-???ۿF?W?!??\?/?l?={//??߸??\,?3=??E??/?꯯??{????v9Y????r????/????}=p?/?z{yY,W?????t??b??:?G0??M_???Ζ??F???????q?~??|??~0????ŧ?ї????i?ǭ??Ƿ??????n??0?G??????}}gN?I<
?"?ˬ???3?????y?x{???r5?߿?;s?=ڻ?R&F'????;???7?X?I?LΏ?C?1&õ?y??????????a'E?$qǯX<϶?}"wo???ų}a???Џ!?Frrv?>?1?yT?e????s?x?ReY
"?D]??ru??-?&IY?EţtR??o?O???}?meË???? ?1?0??4???K?x?*T+nu?}??S???ד?P ........skip

我认为有很多数据可以解决此问题。有办法解决吗?

谢谢。

Apple指南:https://developer.apple.com/documentation/appstoreconnectapi/download_sales_and_trends_reports

1 个答案:

答案 0 :(得分:0)

响应以.gz格式压缩。尝试使用Postman执行get并下载结果以将其签出。