Coder Social home page Coder Social logo

locasms's People

Contributors

adilsoncarvalho avatar alessandrominali avatar douglasresende avatar marcocarvalho avatar tiagopog avatar vyper avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

locasms's Issues

Don't load correctly exception on unauthorized login

Using:

@sms_client = LocaSMS::Client.new 'invalid-user', 'invalid-password'
@sms_client.deliver 'hello', '4199999999'

I received this error:

NameError: uninitialized constant LocaSMS::RestClient::InvalidLogin

New IP address after Jun 1st 2015

Just got the following message from them requiring everyone to change the IP address used to connect to the service from 173.44.33.18 to 209.133.196.250 starting at Jun 1st 2015.

The line that has to be changed is here and don't forget to add test case scenarios as well 😄

Remember to put a warning on the README file asking people to update the gem version asap or it will stop work

image

Documentação (Wiki) não descreve a estrutura da resposta do serviço de consulta de campanha

Na página de documentação do serviço de consulta de campanha não está claro o que cada um dos diversos valores contidos no campo data significam na resposta do serviço.

Por exemplo, a documentação explica que, para o caso de mix de números válidos e inválidos (aguardando envio) a resposta deve ser na estrutura abaixo:

{ "status":0, "data":"'24021571';'N';'14/10/2013 22:28:02';'';'';'SEM TÍTULO';'Numero invalido ou nao cadastrado';'';'S';'';'88889999';'88889999';'Feliz natal'\n'24021572';'N';'14/10/2013 22:28:02';'';'';'SEM TÍTULO';'Aguardando envio';'';'S';'TIM';'4196363940';'4196363940';'Feliz natal'", "msg":null }

Minha dúvida é sobre o campo data:

"data":"'24021571';'N';'14/10/2013 22:28:02';'';'';'SEM TÍTULO';'Numero invalido ou nao cadastrado';'';'S';'';'88889999';'88889999';'Feliz natal'\n'24021572';'N';'14/10/2013 22:28:02';'';'';'SEM TÍTULO';'Aguardando envio';'';'S';'TIM';'4196363940';'4196363940';'Feliz natal'"

Entendo que isso são provavelmente vários resultados concatenados, porém não está simples entender onde começa cada repetição dos resultados, ou o que cada trecho dessa resposta representa (se é o número de telefone, a mensagem, data de envio, data de processamento, etc).

Existe alguma documentação específica de cada trecho do campo data retornado pelo serviço de consulta de status de campanha?

Invalid login but with a valid account

I'm trying send sms from a RoR application with locasms client. Look this code below:

 client_SMS = LocaSMS::Client.new 'XXXXXXX', Rails.application.secrets.sms_password
 client_SMS.balance 
   => NameError: uninitialized constant LocaSMS::RestClient::InvalidLogin

I can login in browser (with same login and password), but with ruby client, this code always returns the same exception.

Do you still supporting this gem? @vyper @adilsoncarvalho

Best regards!

Remove rest-client

Our use is very simple... We don't need to use rest-client... Maybe Net::HTTP is enough for us.

New IP address after March 29, 2016

Just change the IP address used to connect to the service from 209.133.196.250 to 54.173.24.177 starting at March 29, #2016.

Endpoint message received:
captura de tela 2016-03-29 as 10 17 05
#6

URL Callback

Place the callback URL would be great. It intends to do this?

http://54.173.24.177/painel/api.ashx?action=sendsms&lgn=&pwd=&msg=&numbers=319413 6747&url_callback=<URL>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.