call telephone and cancel after several seconds(say WAN GIRI in Japan)
Add this line to your application's Gemfile:
gem 'wangiry'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wangiry
http://kddi-web.twilio.jp/ (Japanese)
setting file(json file) save your favolite path!
example
{
"ACCOUNT_SID": "xxxx",
"AUTH_TOKEN": "xxxx",
"FROM_NUMBER": "+xxx",
"TO_NUMBER": "+xxxx",
"URL": "http://example.com",
"CALLING_TIME": x
}
- Twilio's account info: ACCOUNT_SID, AUTH_TOKEN
- Twilio's telephone number: FROM_NUMBER
- call number: TO_NUMBER
- some URL(RECOMMEND: your website): URL
- calling time(sec): CALLING_TIME
set env
export WANGIRY_ACCOUNT_SID=xxxx
export WANGIRY_AUTH_TOKEN=xxxx
export WANGIRY_FROM_NUMBER='+xxx'
export WANGIRY_TO_NUMBER='+xxx'
export WANGIRY_URL='http://example.com'
export WANGIRY_CALLING_TIME=x
wangiry SETTING_FILE
ARGV.first: your setting file
wangiry
use settings in env
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request