This is example code for my article on this topic found here: Customer feedback via SMS using Go and Slack
An example of a customer feedback bot to rate and get text input regarding past sales via text messaging written in go.
Run like so: go run main.go [46elks username] [46elks password] [Elks46 phone number] [Slack webhook]
You can register for a 46elks account on their website.
Read about Slack webhooks and how to get your webhook url in the Slack Incoming Webhook Documentation
To send an email just send a post request with a to
field to /outgoing
, below is an example in curl
curl -X POST \
http://<your url here>/outgoing \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'to=<your number here>'