Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uberswe/smssalesexample
An example of a customer feedback bot to rate and get text input regarding past sales via text messaging written in go.
https://github.com/uberswe/smssalesexample
Last synced: about 2 months ago
JSON representation
An example of a customer feedback bot to rate and get text input regarding past sales via text messaging written in go.
- Host: GitHub
- URL: https://github.com/uberswe/smssalesexample
- Owner: uberswe
- License: mit
- Created: 2019-04-27T13:15:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T12:49:07.000Z (over 5 years ago)
- Last Synced: 2024-06-19T14:57:06.851Z (6 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## SMS Sales Example
This is example code for my article on this topic found here: [Customer feedback via SMS using Go and Slack](https://gophp.io/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](https://46elks.com).
Read about Slack webhooks and how to get your webhook url in the [Slack Incoming Webhook Documentation](https://api.slack.com/incoming-webhooks)
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:///outgoing \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'to='
```