From 08400806eeb8dc569b784206dbdcf6d4776ee7b9 Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Thu, 19 Aug 2021 09:23:44 -0400 Subject: [PATCH] Fix README example code method names Replace dot notation for `_` in the README's examples for the [item_public_token_exchange][] method calls. [item_public_token_exchange]: https://github.com/plaid/plaid-ruby/blob/608de32b6957bf2802ddf073c85ac9e52855b89f/lib/plaid/api/plaid_api.rb#L2947-L2955 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1df2a44ae..41ac2ff7a 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ An example of the function's usage if you have a `public_token` in hand: request = Plaid::ItemPublicTokenExchangeRequest.new request.public_token = public_token -response = client.item.public_token_exchange(request) +response = client.item_public_token_exchange(request) access_token = response.access_token ``` @@ -125,7 +125,7 @@ access_token = response.access_token request = Plaid::ItemPublicTokenExchangeRequest.new request.public_token = public_token -response = client.item.public_token_exchange(request) +response = client.item_public_token_exchange(request) access_token = response.access_token # Provide the access_token for the Item you want to remove @@ -140,7 +140,7 @@ client.item_remove(item_remove_request) request = Plaid::ItemPublicTokenExchangeRequest.new request.public_token = public_token -response = client.item.public_token_exchange(request) +response = client.item_public_token_exchange(request) access_token = response.access_token transactions_get_request = Plaid::TransactionsGetRequest.new @@ -175,7 +175,7 @@ If you have an `access_token`, you can use following code to retreive data: request = Plaid::ItemPublicTokenExchangeRequest.new request.public_token = public_token -response = client.item.public_token_exchange(request) +response = client.item_public_token_exchange(request) access_token = response.access_token auth_get_request = Plaid::AuthGetRequest.new @@ -204,7 +204,7 @@ Exchange a Plaid Link `public_token` for an API `access_token` and a Stripe `ban request = Plaid::ItemPublicTokenExchangeRequest.new request.public_token = public_token -response = client.item.public_token.exchange(request) +response = client.item_public_token_exchange(request) access_token = response.access_token processor_token_create_request = Plaid::ProcessorStripeBankAccountTokenCreateRequest.new