1.7 KiB
1.7 KiB
Quick Start
cp .env.example .env
# Edit .env with your credentials and output path
cargo build --release
./target/release/antares_get_data
Configuration
.env file:
ANTARES_USERCODE=your_usercode
ANTARES_PASSWORD=your_password_hash
OUT=out
OUT can be:
- Directory:
out→ createsout/antares.xlsx - File path:
exports/data.xlsx→ creates file there - Must be
.xlsxextension if file path
How It Works
- Load credentials from
.env - Fetch product data from Antares B2B API (300s timeout)
- Save raw JSON to
antares.json - Export filtered data to Excel
- Log all operations to
log/YYYY-MM-DD.log
Excel Output
8 columns with selective field mapping and row filtering:
| Column | Source |
|---|---|
| BESZCIKKSZAM | cikkszam (required) |
| GYCIKKSZAM | cikkszam |
| BESZCIKKNEV | cikk_megnevezes_rovid or cikk_megnevezes (required) |
| GYARTO | "EGYEB" |
| CIKKAZON | vonalkod |
| KESZLET | szabad_keszlet |
| ME | mennyisegi_egyseg_kod |
| EGYSEGAR | netto_kisker_ar or "Alap ár" jellemzo |
Rows skipped if cikkszam or product name missing.
Development
cargo build
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
cargo test
License
MIT License © 2026 Orink Hungary Kft.