Reference documentation and code samples for the Google Cloud Ces V1 Client class WhatsappConfig.
How Omnichannel should receive/reply events from WhatsApp.
Generated from protobuf message google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig
Namespace
Google \ Cloud \ Ces \ V1 \ OmnichannelIntegrationConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ phone_number_id |
string
The Phone Number ID associated with the WhatsApp Business Account. |
↳ phone_number |
string
The phone number used for sending/receiving messages. |
↳ whatsapp_business_account_id |
string
The customer's WhatsApp Business Account (WABA) ID. |
↳ webhook_verify_token |
string
The verify token configured in the Meta App Dashboard for webhook verification. |
↳ whatsapp_business_token |
string
The access token for authenticating API calls to the WhatsApp Cloud API. https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens |
↳ meta_business_portfolio_id |
string
The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 |
getPhoneNumberId
The Phone Number ID associated with the WhatsApp Business Account.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPhoneNumberId
The Phone Number ID associated with the WhatsApp Business Account.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPhoneNumber
The phone number used for sending/receiving messages.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPhoneNumber
The phone number used for sending/receiving messages.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWhatsappBusinessAccountId
The customer's WhatsApp Business Account (WABA) ID.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWhatsappBusinessAccountId
The customer's WhatsApp Business Account (WABA) ID.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWebhookVerifyToken
The verify token configured in the Meta App Dashboard for webhook verification.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWebhookVerifyToken
The verify token configured in the Meta App Dashboard for webhook verification.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWhatsappBusinessToken
The access token for authenticating API calls to the WhatsApp Cloud API.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWhatsappBusinessToken
The access token for authenticating API calls to the WhatsApp Cloud API.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetaBusinessPortfolioId
The Meta Business Portfolio (MBP) ID.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMetaBusinessPortfolioId
The Meta Business Portfolio (MBP) ID.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|