func getSts(req: Request) async throws -> JSON {
let resp: ClientResponse = try await TencentClouldApi<STSPayload>(logger: req.logger)
.sendReq(client:
req.client, apiRequst:
TencentClouldApi<STSPayload>.ApiRequest.init(payload: .init())
)
return try resp.content.decode(JSON.self)["Response"]
}
If you need some other ApiPayload, you should implement by yourself reference to 腾讯云api浏览器.
#for stsPayload to get temp sts
TencentRoleArn
TencentSecretId
TencentSecretKey
link |
Stars: 2 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics