How dub1401/avitoapi works
AvitoAPI is a Python client library for selected Avito account and short-term-rental APIs. A caller creates a Profile with account credentials; it obtains and refreshes an access token, then exposes API modules that make authenticated requests and return typed account or booking data. Short-term-rental capabilities include base settings, availability dates, booking retrieval, and period pricing. The README lists many other planned API areas, but they are not implemented in the supplied source tree. Edges reflect shown calls and documented behavior; no storage subsystem is present.
Main entry points: Profile.py Profile client · Modules.py Account information · ShortTermRent.py Rental request data · Info.py Balance model
Components 11
Client and authentication
- Profile client
src/AvitoAPI/Profile.py - Token lifecycle
src/AvitoAPI/Profile.py - Authenticated transport
src/AvitoAPI/Profile.py
API capabilities
- Account information
src/AvitoAPI/Modules.py - Short-term rental
src/AvitoAPI/Modules.py
Request and response types
- Balance model
src/AvitoAPI/Types/Info.py - Profile info model
src/AvitoAPI/Types/Info.py - Booking model
src/AvitoAPI/Types/ShortTermRent.py - Rental request data
src/AvitoAPI/Types/ShortTermRent.py
Other components
- Library caller
- Avito API
Connections 15
- Library caller → Profile client: creates
README.md - Profile client → Token lifecycle: obtains token
src/AvitoAPI/Profile.py - Profile client → Account information: exposes module
src/AvitoAPI/Profile.py - Profile client → Short-term rental: exposes module
src/AvitoAPI/Profile.py - Profile client → Authenticated transport: provides requests
src/AvitoAPI/Profile.py - Token lifecycle → Avito API: requests token
src/AvitoAPI/Profile.py - Token lifecycle → Authenticated transport: refreshes periodically
src/AvitoAPI/Profile.py - Authenticated transport → Avito API: sends authenticated calls
src/AvitoAPI/Profile.py - Account information → Authenticated transport: makes account calls
src/AvitoAPI/Modules.py - Short-term rental → Authenticated transport: makes rental calls
src/AvitoAPI/Modules.py - Account information → Balance model: builds balance
src/AvitoAPI/Modules.py - Account information → Profile info model: builds profile data
src/AvitoAPI/Modules.py - Short-term rental → Booking model: builds booking list
src/AvitoAPI/Modules.py - Library caller → Rental request data: configures rental data
README.md - Rental request data → Short-term rental: supplies settings
src/AvitoAPI/Modules.py