Documentation ¶
Index ¶
- type AuthToken
- type HttpSDK
- func (s *HttpSDK) AuthObject(object interface{})
- func (s *HttpSDK) AuthToken(object AuthToken)
- func (s *HttpSDK) GetPublicKey() (string, error)
- func (s *HttpSDK) PostByAuth(path string, requestObj, responseObj interface{}, encrypted ...bool) error
- func (s *HttpSDK) PostByECC(path string, requestObj, responseObj interface{}) error
- func (s *HttpSDK) PostByHAX(path string, requestObj, responseObj interface{}) error
- func (s *HttpSDK) SetLanguage(language string)
- func (s *HttpSDK) SetTimeout(timeout int64)
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 LoginPath string // contains filtered or unexported fields }
func (*HttpSDK) AuthObject ¶ added in v1.0.98
func (s *HttpSDK) AuthObject(object interface{})
请使用指针对象
func (*HttpSDK) GetPublicKey ¶
func (*HttpSDK) PostByAuth ¶
func (s *HttpSDK) PostByAuth(path string, requestObj, responseObj interface{}, encrypted ...bool) error
对象请使用指针
func (*HttpSDK) SetLanguage ¶ added in v1.0.107
func (*HttpSDK) SetTimeout ¶ added in v1.0.101
Click to show internal directories.
Click to hide internal directories.