Skip to content

Sample in README doesn't work #12

Open

Description

@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?

Activity

  1. dyoung commented on Nov 1, 2011

    @dyoung

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

  2. pboling commented on Dec 14, 2011

    @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.

  3. ghost assigned on Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions