development
md 36 lines 1016 Bytes
Rendered Raw
1 # smbcloud-ascapi-reports
2
3 Sales report downloads from App Store Connect.
4
5 Apple returns these reports as gzip-compressed TSV rather than JSON:API.
6 This crate owns the request shape and hands back the raw bytes; you decide
7 how to persist or transform them.
8
9 ```toml
10 [dependencies]
11 smbcloud-ascapi-core = "0.1"
12 smbcloud-ascapi-reports = "0.1"
13 ```
14
15 ```rust
16 use smbcloud_ascapi_core::{ApiKey, Client};
17 use smbcloud_ascapi_reports::{SalesReportRequest, SalesReportsApi};
18
19 let client = Client::new(ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?);
20 let gzipped_tsv = client
21 .download_sales_report(&SalesReportRequest {
22 vendor_number: "12345678".into(),
23 frequency: "DAILY".into(),
24 report_date: "2026-09-11".into(),
25 report_type: "SALES".into(),
26 report_subtype: "SUMMARY".into(),
27 version: None,
28 })
29 .await?;
30 ```
31
32 See the [API docs](https://docs.rs/smbcloud-ascapi-reports).
33
34 ## Copyright
35
36 © 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).