Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

AvisoSMS

DZone's Guide to

AvisoSMS

·
Free Resource
//  JSON for http://avisosms.ru/solutions/ruby/
//  variable description on http://avisosms.ru/development/json/sendsms/

    # send SMS
    respond = JSON.parse(
               RestClient.post "https://api.avisosms.ru/sms/json/",
               { :username=>"
  
   ",
                 :password=>"
   
    ",
                 :destination_address=>"70951234567",
                 :request_type=>'send_message',
                 :message=>"
    
     ",
                 :source_address=>"
     
      ",
                 :flash=>'0'
               }.to_json


    # get SMS 
    status = JSON.parse(
               RestClient.post "https://api.avisosms.ru/sms/json/",
               { :username=>"
      
       ",
                 :password=>"
       
        ",
                 :request_type=>'get_message_state',
                 :messageID=>"
        
         ",
               }.to_json
              )

        
       
      
     
    
   
  
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}