Sample in README doesn't work #12

socketwiz opened this Issue Aug 10, 2011 · 2 comments


None yet
3 participants

In the README ( under the Getting Started heading there is some code that doesn't seem to work for me:

remit =, 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 commented Nov 1, 2011

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


pboling commented Dec 14, 2011

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.

@ghost ghost assigned pboling Dec 14, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment