Class WhatsappApiFactory

java.lang.Object
com.whatsapp.api.WhatsappApiFactory

public class WhatsappApiFactory extends Object
A factory for creating Whatsapp api client objects.
  • Method Details

    • newInstance

      public static WhatsappApiFactory newInstance(String apiKey)
      New instance whatsapp api factory.
      Parameters:
      apiKey - the api key
      Returns:
      the whatsapp api factory
    • newBusinessCloudApi

      public WhatsappBusinessCloudApi newBusinessCloudApi()
      Creates a new synchronous/blocking Whatsapp business cloud api client
      Returns:
      the whatsapp business cloud api
    • newBusinessCloudApi

      public WhatsappBusinessCloudApi newBusinessCloudApi(ApiVersion apiVersion)
      Creates a new synchronous/blocking Whatsapp business cloud api client, especifying the api version
      Returns:
      the whatsapp business cloud api
    • newBusinessManagementApi

      public WhatsappBusinessManagementApi newBusinessManagementApi()
      Creates a new synchronous/blocking Whatsapp business management api client
      Returns:
      the whatsapp business management api