Skip to content

Fix README example code method names #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down