【发布时间】:2022-01-23 17:06:32
【问题描述】:
我需要在移动应用中显示交易银行和投资银行。 跟随格子文档。
https://plaid.com/docs/investments/add-to-app/#create-a-link_token https://plaid.com/docs/transactions/add-to-app/#create-a-link_token
我创建了我的链接令牌
https://{{env_url}}/link/token/create
{
"client_id": "***",
"secret": "******",
"client_name": "Insert Client name here",
"country_codes": ["US"],
"language": "en",
"user": {
"client_user_id": "test"
},
"products": ["transactions","auth"]
}
但我的投资银行详细信息未列出。只有其他银行上市。
然后我只尝试了"products": ["transactions"]
然后交易和投资银行正在上市。
但是当我尝试使用投资银行访问令牌使用 api 时,我就变成了这样
https://{{env_url}}/investments/transactions/get
我得到 400 和
{
"display_message": null,
"documentation_url": "https://plaid.com/docs/?ref=error#invalid-input-errors",
"error_code": "INVALID_PRODUCT",
"error_message": "client is not authorized to access the following products: [\"investments\"]",
"error_type": "INVALID_INPUT",
"request_id": "JywR16ucSyFYXGF",
"suggested_action": null
}
如果我使用投资银行的 access-token 获取/transactions/get 交易也为空。
然后我只尝试了"products": ["transactions","investments"],
然后我又没有显示投资银行。
我在这里完全糊涂了。我想一次显示所有投资银行和普通银行。并且需要显示投资交易和正常交易..
【问题讨论】:
标签: plaid