Skip to content

Integrate account_token and link_token into the Gem - #2

Open
cdrrazan wants to merge 8 commits into
zach/35/integration-metadatafrom
rajan/zach/35/integration-metadata
Open

Integrate account_token and link_token into the Gem#2
cdrrazan wants to merge 8 commits into
zach/35/integration-metadatafrom
rajan/zach/35/integration-metadata

Conversation

@cdrrazan

@cdrrazan cdrrazan commented Apr 29, 2025

Copy link
Copy Markdown
Collaborator

Notes

  • The initially implemented integrationclient doesn't follow the regular pattern used in this gemfile. Therefore, it is been refactored and moved to provider.
  • Account_token retrieval and link_token creation flow have been integrated into the gem.

Sample Usage

  1. Create link_token
client_integration_link_token = client.integrations.link_token.create(
      end_user_origin_id: user.recognize_hashid,
      end_user_organization_name: user.company.name,
      end_user_email_address: user.email,
      categories: ,
      integration: provider
    )
client_integration_link_token.link_token
  1. Retrieve account_token based on public token
account_token_result = client.integrations.account_token.retrieve(public_token: )
account_token_result.account_token

@cdrrazan cdrrazan changed the title Rajan/zach/35/integration metadata Integrate account_token and link_token into the Gem Apr 30, 2025
@cdrrazan
cdrrazan marked this pull request as ready for review April 30, 2025 08:13
@cdrrazan
cdrrazan requested a review from ZachGrande April 30, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant