GithubHelp home page GithubHelp logo

bobes / textmagic Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 6.0 531 KB

Ruby interface to the TextMagic's Bulk SMS Gateway

Home Page: http://tuzinsky.com/textmagic/

License: MIT License

Ruby 100.00%

textmagic's People

Contributors

alextk avatar bobes avatar makevoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

textmagic's Issues

Rename API#send

send has a special meaning in Ruby, and shouldn't be used for the name of the method.

It's liable to cause unexpected side-effects. For instance, if you were to try and mock out the send method as part of your tests, you'll run into issues very quickly.

I realize that it's a pain to rename such a fundamental part of this API, but using send as a method name is hugely discouraged for a reason.

My suggestion would be to 1) introduce a new method name (e.g. send_message), and 2) deprecate the send method by printing a warning anytime uses it. That way, you can wait for gem users to become aware of the issue, and eventually remove it entirely in a future release.

Invalid username & password combination

Hi

We use your plugin and at the end of July it suddenly stopped authorising with TextMagic and we keep getting the following exception:

/Library/Ruby/Gems/2.0.0/gems/textmagic-0.5.0/lib/textmagic/executor.rb:36:in `execute`: Invalid username & password combination (TextMagic::API::Error)
    from /Library/Ruby/Gems/2.0.0/gems/textmagic-0.5.0/lib/textmagic/api.rb:103:in `send'
    from ./text-magic.rb:6:in `<main>'

Our username and password in our script are definitely correct so we thought it was a problem with TextMagic but on contacting them they said everything is fine. We then tried using Java to connect with the same username and password which worked and sent a message to our phone.

After a little debugging it seems in executor.rb the post:

response = self.post("/api", :body => options, :format => :json)

doesn't seem to be working for us, but when we replace it with

response = self.get("<with full url and url parameters")

it then works and we receive a text.

Any help would be most appreciated.

Thanks

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.