Releases: admitad/admitad-python-api
Releases · admitad/admitad-python-api
Added takefluence_enabled_only parameter in Campaigns.get() for filtering promo code programs
Added takefluence_enabled_only parameter in Campaigns.get() for filtering promo code programs
Latest
What's Changed
Full Changelog: 1.3.4.1...1.3.4.2
Added promo_code_programs_only parameter in Campaigns.get() for filtering promo code programs
What's Changed
Full Changelog: 1.3.4...1.3.4.1
Enhance WebsitesManageV2 to support name-based website retrieval
Updated getOne method to accept both website ID and name for retrieval, with a new search_by parameter.
Implemented URL encoding for names to handle special characters.
Added comprehensive test cases to validate functionality for both ID and name searches, including edge cases with special characters.
What's Changed
Full Changelog: 1.3.3...1.3.4
Add PromoOffersRevocationStatus class and corresponding tests
- Introduced PromoOffersRevocationStatus class to retrieve the revocation status of promo codes for specific offers.
- Implemented the get method with detailed type hints and Google-style docstrings.
- Added comprehensive test cases for various scenarios including successful retrieval, error handling for missing or invalid parameters, and handling of empty responses in test_promo_offers.py.
- Updated imports in test files to include the new class.
1.3.2.1: Merge pull request #12 from nnnLik/bugfix/lenght-of-website-kind
- Increased the maximum length for the 'kind' field from 20 to 50 characters to accommodate a wider range of values.
- Ensured consistency with the sanitization method for improved data handling.
1.3.2: Merge pull request #11 from nnnLik/feature/request-promo-code
- Introduced PromoOfferRequestTrackingCode class for handling request tracking promo codes.
- Implemented request method with detailed type hints and Google-style docstrings.
- Added comprehensive test cases for successful requests, error handling, and validation checks in test_promo_offers.py.
Added WebsitesManageV2 API support
Added WebsitesManageV2 API support:
- New
WebsitesManageV2class - implementation of v2 API for enhanced website management - Extended website management methods:
create()- create website with category and region supportupdate()- update website informationverify()- verify websitedelete()- delete websiteget()- get websites list with paginationgetOne()- get specific website details
- Enhanced data validation using sanitize_fields for all input parameters
- Comprehensive test coverage for all new API methods with mock responses
- Updated v2 API endpoints (
/websites/v2/) supporting full CRUD operations
v1.3.0
- Add PromoOffersForCampaign support and modernize codebase
- Add PromoOffersForCampaign class for campaign promo offers retrieval
- Refactor Client and Exception classes to use dataclasses
- Pin requests dependency to 2.32.5 for stability
- Add comprehensive test coverage for new functionality
- Improve type safety with enhanced type hints
- Support custom API base URL via environment variable
v1.2.0
Stable release
Add new items, remove deprecated code