Rails gem for interfacing to the CDYNE PhoneNotify API
-
Break a few of the methods in base out into other classes
-
Documentation
-
Extend
gem install cdyne-phone-notify --source http://gems.github.com
or
script/plugin install git://github.com/badreligion/cdyne-phone-notify.git
api = PhoneNotify::Base.new('license_key')
msg = api.create_basic_message('111-111-1111', 'Hello world.') api.send_basic_message(msg)
file = File.read('/path/to/mysoundfile.wav') api.upload_sound_file(file, 'mysoundfile') msg = api.create_basic_message('1111111111', '~^mysoundfile~') api.send_basic_message(msg)
msg = api.create_basic_message('111-111-1111', 'Hello world.') resp = api.send_basic_message(msg) if resp.is_a?(Integer) api.get_queue_id_status(resp) else api.get_response_codes[resp] end