send_whatsapp.go
and paste into it this code.
src
should be a phone number registered against your WhatsApp Business Account. dst
should be the destination WhatsApp number that you want to receive the message.
Text is passed using the text
parameter. For details about this param, refer to our documentation.
auth_id
and auth_token
environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use process.env
to store environment variables and fetch them when initializing the client.