Package com.whatsapp.api
Class WhatsappApiFactory
java.lang.Object
com.whatsapp.api.WhatsappApiFactory
A factory for creating Whatsapp api client objects.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new synchronous/blocking Whatsapp business cloud api clientnewBusinessCloudApi
(ApiVersion apiVersion) Creates a new synchronous/blocking Whatsapp business cloud api client, especifying the api versionCreates a new synchronous/blocking Whatsapp business management api clientstatic WhatsappApiFactory
newInstance
(String apiKey) New instance whatsapp api factory.
-
Method Details
-
newInstance
New instance whatsapp api factory.- Parameters:
apiKey
- the api key- Returns:
- the whatsapp api factory
-
newBusinessCloudApi
Creates a new synchronous/blocking Whatsapp business cloud api client- Returns:
- the whatsapp business cloud api
-
newBusinessCloudApi
Creates a new synchronous/blocking Whatsapp business cloud api client, especifying the api version- Returns:
- the whatsapp business cloud api
-
newBusinessManagementApi
Creates a new synchronous/blocking Whatsapp business management api client- Returns:
- the whatsapp business management api
-