Skip to content

abhinavs/gupshupy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gupshupy

gupshupy is an acts_as module for the SMSGupShup’s HTTP send SMS API.

Usage

# in your model, say in User model
class User < ActiveRecord::Base
  acts_as_gupshupy :userid => 'your_gupshup_id', :password => 'your_password'
end

# and then start sending messages
u = User.first
u.send_sms("your message here")

# it uses mobile_number as column name by default, but you can change it
acts_as_gupshupy :userid => 'your_gupshup_id', :password => 'your_password', :mobile_number_field => :phone_number

Installation

sudo gem install gupshupy

Requirements

  • httpclient

License

Released under MIT License, see MIT-LICENSE for details. Copyright © 2011 Abhinav Saxena

About

acts_as module for SMSGupShup's send message API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published