Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helloandre/catfax
Twilio App for sending random Cat Facts
https://github.com/helloandre/catfax
Last synced: 26 days ago
JSON representation
Twilio App for sending random Cat Facts
- Host: GitHub
- URL: https://github.com/helloandre/catfax
- Owner: helloandre
- Created: 2012-04-16T01:31:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-18T04:19:18.000Z (over 12 years ago)
- Last Synced: 2024-10-27T17:30:39.870Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CatFax
An easy way to use your [Twilio][1] account to send cat facts to your "friends" and record their responses.
### Install
1. clone this repository to a public-facing website so that `sms.php` and `voice.php` are publicly accessible.
1. Change 3 values at the top of CatFax.php to whatever your values should be: `$from_number`, `$tw_account_sid`, and `$tw_account_token`.
1. Add some numbers to the `$numbers` array. In the form:
static $numbers = array(
'1xxxxxxxxxx' => 'Their Name'
)1. Make sure the file `$log_file` is writable.
1. Set the Voice and SMS links in Twilio.
### Usage
1. In a cron job, add `/path/to/cloned/repo/run send`. This will iterate over all `$numbers` and send them a random cat fact.
1. To view a conversation, `./run view [number]`
[1]: http://twilio.com