Last active
November 18, 2022 00:30
-
-
Save ingmarioalberto/723915f5cd34af0ab3b3343985adb046 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://developers.facebook.com/docs/whatsapp/on-premises/overview | |
BSP: Business Solution Provider | |
WhatsApp Business Platform On-Premises API | |
Requirements: | |
- Display name: | |
1. how to set it up: https://www.facebook.com/business/help/338047025165344/ | |
2. the formatting guidelines: https://www.facebook.com/business/help/757569725593362 | |
3. updating it: https://www.facebook.com/business/help/378834799515077 | |
- a phone number associated with your business account | |
- a Meta Business Manager: | |
1. https://www.facebook.com/business/help/1710077379203657 | |
- a WhatsApp Business Account (WABA) | |
two types: | |
a) the default business account | |
b) an official business account | |
create account: https://www.facebook.com/business/help/2087193751603668 | |
create account with BSP via Meta Business Manager: https://www.facebook.com/business/help/524220081677109 | |
Migration guide: | |
Install | |
https://developers.facebook.com/docs/whatsapp/on-premises/get-started/installation/prod-multiconnect#install-docker | |
https://github.com/WhatsApp/WhatsApp-Business-API-Setup-Scripts?fbclid=IwAR0RLVrpksCn3Gj8GLUBsXYGUuN490cnm1nkpZfjL0k3gseKxAvBykbWE9A | |
Tokens | |
login------------->Server | |
bearer Token<________╱ | |
Expiration: | |
after certain time | |
after logout | |
Request (expired token) ---> Server | |
(401)<________╱ | |
Headers | |
username:password as base64(String) | |
∴ | |
Authorization: Basic YWRtaW46c2VjcmV0. | |
API Keys | |
client----------(api_key)---->server | |
health, metrics, and stats<__╱ | |
Client-----(api_key)--->Server | |
Method,Url,Headers,Body | |
Whatsapp Business API Responses: | |
HTTP Status Code | |
Payload (on success) | |
Meta (like a fingerprint version of api) | |
Errors | |
Whatsapp Business API Architecture | |
[Database] [Media Volume] | |
| | | |
+------------------+ | |
| | _________ | |
[WebApp]<------------>[Core App]<-->[WA Servers | |
| | --------- | |
| | | |
_________________ | | |
[Business Servers ]-------+ | |
| | | |
|_________________] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment