-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Retrieve existing WhatsApp Templates & enums #189
base: main
Are you sure you want to change the base?
Conversation
@aalbarca I've added a method to request whatsapp templates. Furthermore, I've used enums and updated the requirements to PHP => 8.1 (as PHP 7 is no longer supported), so it should probably mean a version bump. |
@aalbarca do you know how I can update the PHP version of the CI? |
Hey there @likeabas thank you for this contribution this is exactly what I needed.
I don't think this will be merged if the author @aalbarca still wants to support PHP 7.4. And if you ask me, I love the most recent versions of PHP, but you can't always update your PHP version if you are in production. PHP 7.4 is still widespread and supporting it still matters in 2024. How about rolling back the "enum" part? Note the author is already using a PHP package that allows you to use enums as if they were PHP 8.0 native enums. See this for instance. Nevertheless, this PR is awesome. @aalbarca what do you think of it? |
By the way @likeabas aren't template status & template category different? If you see the official Meta Docs, you can pass both indeed. Quoting the docs: Category
Status
|
This change allows to request all available templates. The
WHATSAPP_CLOUD_API_BUSINESS_ID
should be set to make it work.It touches upon #182