Wapi.go SDK allows you to manage your business account with ease. You can manage your business account by using the methods and sub-business client available in the SDK. Here are some of the features that you can do with the SDK:

Fetch Business Account

Check the api reference docs here to know about all available methods

To fetch business account, you need to cal the Fetch method available on the Business client attached to the main wapi.go client. The method will return the business account details.

business, err := wapi.Business.Fetch()

Fetch Business Account Statistics

Account Analytics

Use the following method on Business client to fetch the account analytics.

	client.Business.FetchAnalytics(business.AccountAnalyticsOptions{
		Start:       time.Now().Add(-time.Hour * 24 * 7 * 30),
		End:         time.Now(),
		Granularity: business.AnalyticsRequestGranularityTypeDay,
	})
Check the api reference docs here to know about all available options to tweak the response type and scope for business account analytics.

Conversation Statistics

Use the following method on Business client to fetch the conversation statistics.

	client.Business.ConversationAnalytics(business.ConversationAnalyticsOptions{
		Start:       time.Now().Add(-time.Hour * 24 * 7 * 30),
		End:         time.Now(),
		Granularity: business.ConversationAnalyticsGranularityTypeDay,
	})
Check the api reference docs here to know about all available options to tweak the response type and scope for business account conversation analytics.

Fetch Business Account Phone Numbers, Migrate New and Update Phone Numbers

Visit this guide to know more about the account phone numbers operations.

Fetch Business Account Templates and Create New Templates or Update Existing Templates

Visit this guide to know more about the account messaging templates operations.

Updating a user

Use the following method on Business client to fetch the conversation statistics.

	client.Business.ConversationAnalytics(business.ConversationAnalyticsOptions{
		Start:       time.Now().Add(-time.Hour * 24 * 7 * 30),
		End:         time.Now(),
		Granularity: business.ConversationAnalyticsGranularityTypeDay,
	})
Check the api reference docs here to know about all available options to tweak the response type and scope for business account conversation analytics.

Deleting a user access form Whatsapp Business Account

Use the following method on Business client to fetch the conversation statistics.

	client.Business.ConversationAnalytics(business.ConversationAnalyticsOptions{
		Start:       time.Now().Add(-time.Hour * 24 * 7 * 30),
		End:         time.Now(),
		Granularity: business.ConversationAnalyticsGranularityTypeDay,
	})
Check the api reference docs here to know about all available options to tweak the response type and scope for business account conversation analytics.

Fetch a Product Catalog

Delete a Product Catalog