卷曲在flitter中
如果有人可以解释如何在Flitter中使用以下代码,我将非常感谢。
curl -k -d“ grant_type = password& username =用户名& password =密码”
-h“授权:基本基础64(消费者密钥:消费者销售)”
https://devesb.elicia.systems:8263/token 使用密码授予类型生成访问令牌。
那就是他们所说的,然后我得到了这一点:
curl -k -X POST "https://devesb.vfdbank.systems:8263/vfd-wallet/1.1/wallet2/onboarding?wallet-credentials=wallet-credentials" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer c9b84e30-e59a-3789-b6d1-3595552dfb23" -d "{ \"username\": \"Username used to signup\", \"walletName\": \"Company/Wallet name\", \"webhookUrl\": \"Inward notifications Webhook\", \"shortName\": \"Wallet short name (4 Characters)\", \"implementation\": \"POOL or 1-1\"}"
还为消费者密钥和消费者秘密钥匙提供了。您能帮我构建上述卷发(我被给予的卷发),并告诉我在哪里添加消费者和秘密钥匙。已经有几个星期了,如果您能帮助我,我将非常感激。
Please I would really appreciate if anyone can explain how to use the below code in flitter.
curl -k -d "grant_type=password&username=Username&password=Password"
-H "Authorization: Basic Base64(consumer-key:consumer-secret)"
https://devesb.elicia.systems:8263/token
The above cURL command shows how to generate an access token using the Password Grant type.
That was what they said, Then I was given this:
curl -k -X POST "https://devesb.vfdbank.systems:8263/vfd-wallet/1.1/wallet2/onboarding?wallet-credentials=wallet-credentials" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer c9b84e30-e59a-3789-b6d1-3595552dfb23" -d "{ \"username\": \"Username used to signup\", \"walletName\": \"Company/Wallet name\", \"webhookUrl\": \"Inward notifications Webhook\", \"shortName\": \"Wallet short name (4 Characters)\", \"implementation\": \"POOL or 1-1\"}"
was also given a consumer key and consumer secret key. Could you please help me structure the above curl (The one I was given) and tell me where to add the consumer and secret keys. Have been on this for weeks now and I would be so very grateful if you could help me out on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 http package 。
这是您的代码的或多或少直接的翻译:
注意:在上面的代码中,请求主体将自动编码为X-WWW-Form-urlCorm-urlenCod编码,如您的卷发请求中。
You'll need to use the http package.
Here is a more or less straightforward translation of your code:
Note: In the above code, the request body will be automatically encoded as x-www-form-urlencoded, as in your curl request.