Sha256: 479d5bf6d44b47c2e553113af6a03bd4cf5953e5612114b5bad97fd8fd00d4fd
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
# Textveloper Envío de mensajes de texto a tráves del servicio de mesajeria de [Textveloper](http://textveloper.com) [](https://codeclimate.com/repos/523697cdc7f3a37543001042/feed) [](http://badge.fury.io/rb/textveloper) [](https://travis-ci.org/GusGA/Textveloper) ## Installation Add this line to your application's Gemfile: gem 'textveloper' And then execute: $ bundle Or install it yourself as: $ gem install textveloper ## Uso ```ruby sms = Textveloper::Sdk.new(cuenta_token,subcuenta_token) ``` ### Enviar mensajes individuales ```ruby sms.send_sms(numero,mensaje) sms.send_sms("04141234567","Hola Mundo") ``` Este metodo retorna un Hash object (de ser exitoso esta seria la respuesta) ``` {:'04141234567' => {"transaccion"=>"exitosa", "mensaje_transaccion"=>"MENSAJE_ENVIADO"}} ``` ### Enviar mensajes "cadena" o masivos único mensaje a multiples números celulares ```ruby sms.mass_messages(arreglo_de_numeros, mensaje) ``` ```ruby telefonos = ["04121234567","04149876543","04164567890"] sms.mass_messages(telefonos, "Hola a todos") ``` Retorna un hash con la respuesta asociada a cada número telefónico ```ruby { :'04141234567' => {"transaccion"=>"exitosa", "mensaje_transaccion"=>"MENSAJE_ENVIADO"}, :'04149876543' => {"transaccion"=>"exitosa", "mensaje_transaccion"=>"MENSAJE_ENVIADO"}, :'04164567890' => {"transaccion"=>"exitosa", "mensaje_transaccion"=>"MENSAJE_ENVIADO"} } ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
textveloper-0.0.4 | README.md |