plaid / plaid-ruby

Ruby bindings for Plaid
https://plaid.com/docs
MIT License
228 stars 144 forks source link

Error in README file example #412

Closed alvaritez closed 2 years ago

alvaritez commented 2 years ago

There is an error in one of the examples in the README file, in the "Obtaining Item-related data" section:

request = Plaid::ItemPublicTokenExchangeRequest.new
request.public_token = public_token

response = client.item_public_token_exchange(request)
access_token = response.access_token

auth_get_request = Plaid::AuthGetRequest.new
auth_get_request.access_token = access_token

auth_response = client.auth_get(access_token) # ==> should be auth_response = client.auth_get(auth_get_request)
auth = auth_response.auth
phoenixy1 commented 2 years ago

thank you for the report! This is fixed and will go out in the next client library release (currently scheduled for this week). See also https://github.com/plaid/plaid-ruby/pull/410