Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Sample in README doesn't work #12

Open
socketwiz opened this Issue · 2 comments

3 participants

@socketwiz

In the README (https://github.com/tylerhunt/remit#readme) under the Getting Started heading there is some code that doesn't seem to work for me:

remit = Remit::API.new(ACCESS_KEY, SECRET_KEY, true)

response = remit.get_tokens
puts response.tokens.first.token_id

The last line gives me the following error:

NoMethodError: undefined method `tokens' for #<Remit::GetTokens::Response:0x106fe56d0>
  from /Users/socketwiz/.rvm/gems/ree-1.8.7-2011.03/gems/relax-0.0.7/lib/relax/response.rb:32:in `method_missing'
  from (irb):21

I set my ACCESS_KEY and SECRET_KEY variables, and get_tokens does return a bunch of valid looking data, but the response doesn't seem to have any tokens...any ideas?

@dyoung

Same result with Ruby 1.9.1p376, FWIW, which isn't much. The test suite fails with the same issue.

@pboling
Collaborator

The readme definitely needs an update. I no longer use remit, and have little time to work on it, but will merge in a pull request with a fix.

@pboling pboling was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.