Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: client and api discrepency #54

Closed
daniel-swordfish opened this issue May 10, 2023 · 2 comments
Closed

bug: client and api discrepency #54

daniel-swordfish opened this issue May 10, 2023 · 2 comments

Comments

@daniel-swordfish
Copy link

daniel-swordfish commented May 10, 2023

The API documentation lists the WhatsApp template categories as MARKETING, AUTHENTICATION, UTILITY
Screenshot from 2023-05-10 14-51-32

but https://github.com/infobip/infobip-api-php-client/releases/tag/5.0.0 only allows the old categories of MARKETING, TRANSACTIONAL, OTP
image

The error I get if I try to create a template with the UTILITY category

Property path 'category' validation failed with message: The value you selected is not a valid choice. {"userId":1,"exception":"[object] (InvalidArgumentException(code: 0): Property path 'category' validation failed with message: The value you selected is not a valid choice. at /var/www/html/vendor/infobip/infobip-api-php-client/Infobip/ObjectSerializer.php:256)
@daniel-swordfish
Copy link
Author

@ibirogar

@ibirogar
Copy link
Contributor

Fixed in 5.1.3:
https://github.com/infobip/infobip-api-php-client/releases/tag/5.1.3

@daniel-swordfish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants