csvw99-cloud-sdk-go

command module
v0.0.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

cloud-sdk-go

项目简介

  1. golang sdk
  2. 接入自动签名
  3. 接入云端配置函数
安装

使用 go get 下载安装 SDK:

go get -u github.com/Technology-99/csvw99-cloud-sdk-go
快速开始
package main

import (
	"github.com/Technology-99/csvw99-cloud-sdk-go/pb/cloudc"
	"github.com/Technology-99/csvw99-cloud-sdk-go/sdk"
	"github.com/zeromicro/go-zero/core/logx"
	"os"
)

func main() {

	Endpoint := os.Getenv("ENDPOINT")

	// 本示例从环境变量中获取AccessKey ID和AccessKey Secret。
	AccessKeyId := os.Getenv("ACCESS_KEY_ID")
	AccessKeySecret := os.Getenv("ACCESS_KEY_SECRET")

	s := sdk.NewSdk().WithConfig(sdk.DefaultConfig(AccessKeyId, AccessKeySecret, []string{Endpoint})).AutoAuth().InitCloudC()

	res, err := s.CloudCCheckStatus().CloudCWechatConfigGet(&cloudc.ConfigGetParams{
		Key: "default",
	})
	if err != nil {
		return
	}
	logx.Infof("打印一下请求的结果:%+v", res)
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pb
h5
mix
sdk
*
*

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL