powershell - 你如何调用rest方法powershell来获取访问令牌
问题描述
我正在尝试创建一个小的 powershell 脚本来调用 rest 方法来获取访问令牌。我能够弄清楚如何使用迅雷客户端在获取请求中获取我需要的数据,但不知道如何将该信息转换为 powershell 命令。
在迅雷客户端生成新令牌的信息如下:
Grant Type: Client Credentials
Token URL: {{token_url}}
clientID: {clinet_ID}}
clientSecret: {client_secret}}
scope: {{scope}}
send Auth: As Auth Header
在PowerShell中?
解决方案
推荐阅读
- ipad - iPadOS - 在 SwiftUI 中以编程方式关闭侧边栏
- amazon-web-services - Ec2 实例与 RDS 数据库的连接
- postgresql - 插入的数据在通过远程调用第二个应用程序创建的应用程序服务器之外不可见
- python-3.x - 如何从 xgboost 获得类似 glm 的优势比?
- c# - 如何获取辅助监视器的缩放配置?
- scala - Find the max value within a Dataframe based on an interval of a different Dataframe
- python - 如何从前几个月的平均值计算每个月的百分比变化
- mysql - 如何格式化 SQL 查询的 ID(需要引号和逗号之间)
- image - 在 vue 应用程序上渲染之前降低图像质量
- amazon-web-services - 将用户数据传递给 EMR EC2 实例