Documentation ¶
Overview ¶
Package core 包含SDKClient
Index ¶
- Constants
- type SDKClient
- func (c *SDKClient) ClientID() string
- func (c *SDKClient) Do(req model.Request, resp model.Response, accessToken string) error
- func (c *SDKClient) SetDataType(t model.RequestDataType)
- func (c *SDKClient) SetDebug(debug bool)
- func (c *SDKClient) SetGateway(gw string)
- func (c *SDKClient) SetUploadGateway(gw string)
- func (c *SDKClient) Upload(req model.UploadRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) WSSUrl() string
Constants ¶
View Source
const ( // GATEWAY 默认APIgateway GATEWAY = "https://gw-api.pinduoduo.com/api/router" // UPLOAD GATEWAY UPLOAD_GATEWAY = "https://gw-upload.pinduoduo.com/api/upload" // WSSEndPoint wws endpoint WSSEndPoint = "wss://message-api.pinduoduo.com/message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDKClient ¶
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient sdk client
func NewSDKClient ¶
NewSDKClient 创建SDKClient
func (*SDKClient) SetDataType ¶
func (c *SDKClient) SetDataType(t model.RequestDataType)
SetDataType 设置返回数据格式
func (*SDKClient) SetUploadGateway ¶
Click to show internal directories.
Click to hide internal directories.