bobes / textmagic

Ruby interface to the TextMagic's Bulk SMS Gateway
http://tuzinsky.com/textmagic/
MIT License
14 stars 6 forks source link

Invalid username & password combination #7

Open skyguide opened 10 years ago

skyguide commented 10 years ago

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

skyguide commented 10 years ago

We now know what the problem is, which you have already fixed with the https call to textmagic. However we notice the latest version 0.6.0 is not available via gem install. When will this be available?

Thanks

stragaw commented 10 years ago

textmagic-0.5.0 where you can download?

bobes commented 10 years ago

@stragaw see https://rubygems.org/gems/textmagic for details

stragaw commented 10 years ago

Thanks!