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

#153 -> including support for other API versions >= v16.0. #163

Merged
merged 10 commits into from
May 6, 2024
Merged

Conversation

Bindambc
Copy link
Owner

@Bindambc Bindambc commented Jan 27, 2024

"Now it's possible to change the API version either through WhatsappApiFactory or through the WhatsappApiConfig class.

        //changing API version
        WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TestConstants.TOKEN);

        WhatsappBusinessCloudApi whatsappBusinessCloudApi = factory.newBusinessCloudApi(ApiVersion.V17_0);

or

        //changing API version before instantiating the API client
        WhatsappApiConfig.setApiVersion(ApiVersion.V17_0);
        WhatsappApiFactory factory = WhatsappApiFactory.newInstance(TestConstants.TOKEN);

        WhatsappBusinessCloudApi whatsappBusinessCloudApi = factory.newBusinessCloudApi();

closes #153

@Bindambc Bindambc added enhancement New feature or request breaking-change labels Jan 27, 2024
@Bindambc Bindambc self-assigned this Jan 27, 2024
@Bindambc Bindambc added the java Pull requests that update Java code label Jan 27, 2024
@github-actions github-actions bot added the tests label Jan 27, 2024
@gu1llermo
Copy link

Hello buddy, I don't see that option enabled to change the version yet, do I have to do something additional or is it not ready yet?

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label May 6, 2024
@Bindambc Bindambc merged commit 1196223 into main May 6, 2024
5 of 6 checks passed
@Bindambc Bindambc deleted the issue_#153 branch May 6, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change dependencies Pull requests that update a dependency file enhancement New feature or request github-actions java Pull requests that update Java code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API_VERSION = "v16.0" Not Working - Suggestion
2 participants