sdk

package
v1.0.162 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRequestObject added in v1.0.146

func BuildRequestObject(path string, requestObj interface{}, secret string, encrypted ...bool) ([]byte, error)

Types

type AuthToken added in v1.0.98

type AuthToken struct {
	Token   string `json:"token"`
	Secret  string `json:"secret"`
	Expired int64  `json:"expired"`
}

type HttpSDK

type HttpSDK struct {
	Debug      bool
	Domain     string
	AuthDomain string
	KeyPath    string
	LoginPath  string
	// contains filtered or unexported fields
}

func (*HttpSDK) AuthObject added in v1.0.98

func (s *HttpSDK) AuthObject(object interface{})

请使用指针对象

func (*HttpSDK) AuthToken added in v1.0.98

func (s *HttpSDK) AuthToken(object AuthToken)

func (*HttpSDK) GetPublicKey

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

func (*HttpSDK) PostByAuth

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

PostByAuth 对象请使用指针

func (*HttpSDK) PostByECC

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

对象请使用指针

func (*HttpSDK) PostByHAX added in v1.0.106

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

func (*HttpSDK) SetLanguage added in v1.0.107

func (s *HttpSDK) SetLanguage(language string)

func (*HttpSDK) SetTimeout added in v1.0.101

func (s *HttpSDK) SetTimeout(timeout int64)

Jump to

Keyboard shortcuts

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