Documentation ¶
Overview ¶
Package core 包含SDKClient
Index ¶
- Constants
- type SDKClient
- func (c *SDKClient) AnalyticsPost(gw string, req model.PostRequest, resp model.Response) error
- func (c *SDKClient) DisableSandbox()
- func (c *SDKClient) Get(gw string, req model.GetRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) GetBytes(gw string, req model.GetRequest, accessToken string) ([]byte, error)
- func (c *SDKClient) Post(gw string, req model.PostRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) SetDebug(debug bool)
- func (c *SDKClient) Upload(gw string, req model.UploadRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) UseSandbox()
Constants ¶
View Source
const ( // BASE_URL 默认APIgateway BASE_URL = "https://ad.oceanengine.com/open_api/" // ANALYTICS_URL 转化回传API gateway ANALYTICS_URL = "https://analytics.oceanengine.com/api/v2/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDKClient ¶
SDKClient sdk client
func NewSDKClient ¶
NewSDKClient 创建SDKClient
func (*SDKClient) AnalyticsPost ¶ added in v1.1.0
AnalyticsPost 转化回传API专用
func (*SDKClient) Get ¶
func (c *SDKClient) Get(gw string, req model.GetRequest, resp model.Response, accessToken string) error
Get get api
func (*SDKClient) Post ¶
func (c *SDKClient) Post(gw string, req model.PostRequest, resp model.Response, accessToken string) error
Post post api
Click to show internal directories.
Click to hide internal directories.