Skip to content

A wrapper for hesine.com api. make it more flexible to use in rubyonrails

License

Notifications You must be signed in to change notification settings

wear/open_hesine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hesine
======

A wrapper for hesine.com api. make it more flexible to use in rubyonrails

In order to use this please read hesine's api doc first

Install

install dependency
rest client,
  >> ruby script/plugin install git://github.com/adamwiggins/rest-client.git
crack  
  >> ruby script/plugin git://github.com/jnunemaker/crack.git

Install open_hesine
  >> ruby script/plugin install git://github.com/wear/open_hesine.git

Example
=======  

# bind a phone

Hesine::Bundle.bind(:phone => '1500191xxxx')

#unbind                

Hesine::Bundle.unbind(:phone => '1500191xxxx') 

send a message

Hesine::Message.send(:phone => '1500191xxxx',:from => '"stephen"<support@mhqx001>',:to => "test@mhqx001",
:subject => 'test',:body => 'test')


Copyright (c) 2009 [stephen,[email protected]], released under the MIT license

About

A wrapper for hesine.com api. make it more flexible to use in rubyonrails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages