Register your project here https://business-communications.cloud.google.com/console/
- Upload the files to your
lhc_web/extension/googlebusinessmessagefolder - if your folder contain lower and Upper cases, rename it to lowercase
googlebusinessmessage
- Go to https://business-communications.cloud.google.com/console/
- Click
Create Partner Accounton theBusiness Messages - Then Fill the necessery details and Click
Create - Click
Patrner account settingson top right corner (Gear Icon) - Click
Service account - Create key and download json file.
- Copy
extension/googlebusinessmessage/settings/google_service.json.default.phptoextension/googlebusinessmessage/settings/google_service.json.php - Modify file and put json file content in dedicated place in
settings/google_service.json.phpfile.
Truncated sample file
- Execute
extension/googlebusinessmessage/doc/install.sqlor just execute from command line
php cron.php -s site_admin -e googlebusinessmessage -c cron/update_structure
Install dependencies using composer
cd extension/googlebusinessmessage && composer install
Activate extension in main settings file lhc_web/settings/settings.ini.php extension section googlebusinessmessage by Adding lines:
'extensions' => array ( ,'googlebusinessmessage' ),
If you don't see this in Module, check your lhc_web/settings/settings.ini.php and also click Clean Cache from back office
- Click
Modulesthen clickGoogle Business - Then Click
Install/Update(Colour will change from Red to Green ) - Then Click
Agentsand fill the requred fieldBrand IDandAgent IDcan be found in your Google Business Communications page- Put random string on
Client Token - copy
Callback URL for Google Business Messagevalue to your clipboard and click save
- Go to your
Google Business Communications pageand click onIntergration - Then Enable
Webhook - Put your
Webhook EndPoint URLandClient Token - Click Verify
- Partner
- Agent
- Service Account export
- https://github.com/googleapis/google-api-php-client - PHP library
- https://developers.google.com/business-communications/business-messages/guides - main documentation page
- https://github.com/google-business-communications/bm-snippets-curl - code samples with CURL
- https://github.com/google-business-communications/bc-bm-nodejs-command-line-examples - NodeJS samples
