Registry / cloud / tencentcloud-tencentcloud-sdk-go-tencentcloud-sts

tencentcloud-tencentcloud-sdk-go-tencentcloud-sts

JSON →
library1.0.1059gogounverified

Package sts provides Tencent Cloud Security Token Service (STS) API client for Go.

go get github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts
INSTALL
IMPORT
SIG · TENCENTCLOUD-TENCE
T
tencentcloud-tencentcloud-sdk-go-tencentcloud-sts
cloudgov1.0.1059
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sts
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts

Initialize STS client and call GetCallerIdentity

package main import ( "fmt" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts" ) func main() { client, _ := sts.NewClient(common.NewCredential("secretId", "secretKey"), "ap-guangzhou") req := sts.NewGetCallerIdentityRequest() resp, _ := client.GetCallerIdentity(req) fmt.Println(resp.ToJsonString()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1059latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
19
OpenAI (training)
1
Resources
tencentcloud-tencentcloud-sdk-go-tencentcloud-sts — go get tencentcloud-tencentcloud-sdk-go-tencentcloud-sts · libregistry