Sha256: 05a0da524b90f750d01d5b96eff4ff2aa79031579c84a421d0d1ae67a762c89e

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')

require 'connfu'

##
# This application is an example of how to create a connFu application

token = ARGV.shift

Connfu.logger = STDOUT
Connfu.log_level = Logger::DEBUG

Connfu.application(token) {

    listen(:sms) do |sms|
          sms.on(:new) do |message|
              puts "New inbound sms from #{message[:from]}: #{message[:content]}"
          end
    end


}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
connfu-client-0.1.6 examples/sms/application.rb
connfu-client-0.1.5 examples/sms/application.rb