当我的应用请求时 wallet:accounts:read permission
使用 Coinbase API 的 v2,用户会看到一个所有账户的下拉列表,他只能在三个可能的钱包中选择一个。如果我的应用程序想要使用所有三个钱包(例如 BTC、ETC、LTC),什么是优雅的解决方案?使用 OAuth 连接三次,每次请求用户授予对特定钱包的访问权限并不是一个干净的解决方法。应用程序如何通过单个请求请求所有帐户的权限?
最佳答案
根据Coinbase docs ,在 GET https://www.coinbase.com/oauth/authorize
Oauth 流程的一部分,您可以选择指定参数 accounts
配置您的应用程序可以访问哪些帐户。
Change the account access the application will receive. Available values:
select
(default) Allow user to pick the wallet associated with the application
new
Application will create a new wallet (named after the application)
all
Application will get access to all of user’s walletsFor backward compatibility all is used as default for applications created prior to this change
添加此参数允许我访问与用户关联的所有帐户!
关于coinbase-api - 如何使用钱包 :accounts:read? 请求访问所有用户帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47857809/