Go

module
v0.0.0-...-301ecb0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT

README

GO API_Client

适用于 UP控制台8.x版本

Install

go get -v gitee.com/i2soft/api-client/Go

Demo

package main

import (
	"fmt"

	upclient "gitee.com/i2soft/api-client/Go/httpclient"
)

func main() {
	ip := "172.20.68.203"
	port := "58086"
	ak := "ssss" // 登录控制台,个人信息页获取
	sk := "dddd" // 只在创建时出现一次
	client := upclient.NewHttpClient(ip, port, ak, sk)

	rs, err := client.DoRequest("GET", "/node", map[string]interface{}{})
	if err != nil {
		fmt.Println("err", err)
	} else {
		fmt.Println("resp", rs)
	}
}

更多

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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