Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.
/ wangiry Public archive

call telephone and cancel after several seconds(say WAN GIRI in Japan)

License

Notifications You must be signed in to change notification settings

bash0C7/wangiry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wangiry

call telephone and cancel after several seconds(say WAN GIRI in Japan)

Installation

Add this line to your application's Gemfile:

gem 'wangiry'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wangiry

get Twilio account

http://kddi-web.twilio.jp/ (Japanese)

settings

pattern1. write setting file

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

pattern2.

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

Usage

pattern1

wangiry SETTING_FILE

ARGV.first: your setting file

pattern2

wangiry

use settings in env

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

call telephone and cancel after several seconds(say WAN GIRI in Japan)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages