-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
304eaa4
commit 809c52d
Showing
3 changed files
with
48 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
|
||
## implemented | ||
- [x] send text message | ||
- [x] send image message | ||
- [x] send location message | ||
- [x] send contact message | ||
- [x] send template message | ||
- [x] react to message | ||
- [x] mark message as read | ||
- [x] webhooks | ||
|
||
# SETUP | ||
## set up | ||
- Have golang installed | ||
- Register as a Meta Developer here https://developers.facebook.com/docs/development/register | ||
- Create an application here https://developers.facebook.com/docs/development/create-an-app and configure | ||
it to enable access to WhatsApp Business Cloud API and Webhooks. | ||
|
||
## pre requisites | ||
- You can manage your apps here https://developers.facebook.com/apps/ | ||
|
||
To be able to test/use this api you need Access Token, Phone number ID and Business ID. For that | ||
tou need to register as a Meta Developer. You can register here https://developers.facebook.com/docs/development/register | ||
- From Whatsapp Developer Dashboard you can try and send a test message to your phone number. | ||
to be sure that everything is working fine before you start using this api. Also you need to | ||
reply to that message to be able to send other messages. | ||
|
||
Then create an application here https://developers.facebook.com/docs/development/create-an-app and configre | ||
it to enable access to WhatsApp Business Cloud API. | ||
- Go to [examples/base](examples/base) then create `.env` file that looks like [examples/base/.envrc](examples/base/.envrc) | ||
and add your credentials there. | ||
|
||
You can manage your apps here https://developers.facebook.com/apps/ | ||
|
||
From Whatsapp Developer Dashboard you can try and send a test message to your phone number. | ||
to be sure that everything is working fine before you start using this api. | ||
|
||
When all the above is done you can start using this api. | ||
- Run `make run` and wait to receive a message on your phone. Make sure you have sent the template message | ||
first from the Whatsapp Developer Dashboard. |
This file contains 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
This file contains 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