Documentation ¶
Index ¶
- type SDKClient
- func (c *SDKClient) ActionCb(req model.ActionCbRequest) error
- func (c *SDKClient) AppID() string
- func (c *SDKClient) Conversion(req model.ConversionRequest, resp interface{}) (*model.ResponseHeader, error)
- func (c *SDKClient) Do(req *model.Request, resp interface{}) (*model.ResponseHeader, error)
- func (c *SDKClient) Get(reqUrl string, resp interface{}) error
- func (c *SDKClient) OAuth(req model.RequestBody, resp interface{}) error
- func (c *SDKClient) Post(reqUrl string, bs []byte, resp interface{}) error
- func (c *SDKClient) Secret() string
- func (c *SDKClient) SetDebug(debug bool)
- func (c *SDKClient) SetHttpClient(httpClient *http.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDKClient ¶
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient object
func NewSDKClient ¶
NewSDKClient init sdk client
func (*SDKClient) ActionCb ¶ added in v1.2.8
func (c *SDKClient) ActionCb(req model.ActionCbRequest) error
func (*SDKClient) Conversion ¶ added in v1.2.8
func (c *SDKClient) Conversion(req model.ConversionRequest, resp interface{}) (*model.ResponseHeader, error)
func (*SDKClient) OAuth ¶ added in v1.2.9
func (c *SDKClient) OAuth(req model.RequestBody, resp interface{}) error
OAuth execute oauth api request
func (*SDKClient) SetHttpClient ¶ added in v1.2.8
Click to show internal directories.
Click to hide internal directories.