sdk

package
v1.0.96 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpSDK

type HttpSDK struct {
	Debug   bool
	Domain  string
	KeyPath string
	Token   string
	Secret  string
}

func (*HttpSDK) Auth

func (s *HttpSDK) Auth(token, secret string)

func (*HttpSDK) GetPublicKey

func (s *HttpSDK) GetPublicKey() (string, error)

func (*HttpSDK) PostByAuth

func (s *HttpSDK) PostByAuth(path string, requestObj, responseObj interface{}, encrypted ...bool) error

对象请使用指针

func (*HttpSDK) PostByECC

func (s *HttpSDK) PostByECC(path string, requestObj, responseObj interface{}) error

对象请使用指针

Jump to

Keyboard shortcuts

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