mcorp / locasms Goto Github PK
View Code? Open in Web Editor NEWClient to consume LocaSMS api's
License: MIT License
Client to consume LocaSMS api's
License: MIT License
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
Our use is very simple... We don't need to use rest-client... Maybe Net::HTTP is enough for us.
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
It's need remove redcarpet
gem to support jruby.
When I added the rubocop to project I did try resolve all offenses, but some offenses are too big to solve on only one PR (#27).
So I opened this issue for solve all offenses on .rubocop_todo.yml.
Depends #27
To improve our test code style we want to add to project the rubocop-rspec and correct all offenses.
Depends #27
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?
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:
#6
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!
To use the json implementation choosen by user.
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>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.