Documentation ¶
Overview ¶
Package core 包含SDKClient
Index ¶
- Constants
- type RateLimiter
- type SDKClient
- func (c *SDKClient) AnalyticsPost(gw string, req model.ConversionRequest, resp model.Response) error
- func (c *SDKClient) AnalyticsV1Post(gw string, req model.PostRequest, resp model.Response) error
- func (c *SDKClient) Copy() *SDKClient
- func (c *SDKClient) DisableSandbox()
- func (c *SDKClient) Get(gw string, req model.GetRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) GetAPI(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) OpenGet(gw string, req model.GetRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) Post(gw string, req model.PostRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) PostAPI(gw string, req model.PostRequest, resp model.Response, accessToken string) error
- func (c *SDKClient) SetDebug(debug bool)
- func (c *SDKClient) SetHttpClient(client *http.Client)
- func (c *SDKClient) SetOperatorIP(ip string)
- func (c *SDKClient) SetRateLimiter(limiter RateLimiter)
- func (c *SDKClient) TrackActive(req model.TrackRequest, resp model.Response) error
- 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/" // API_BASE_URL 默认APIgateway API_BASE_URL = "https://api.oceanengine.com/open_api/" // ANALYTICS_URL 转化回传API gateway ANALYTICS_URL = "https://analytics.oceanengine.com/api/v2/" // ANALYTICSV1_URL 电话转化回传API gateway ANALYTICSV1_URL = "https://analytics.oceanengine.com/api/v1/" // TRACK_URL 转化事件回调服务 gateway TRACK_URL = "https://ad.oceanengine.com/track/activate/" // OPEN_URL OpenAPI gateway OPEN_URL = "https://open.oceanengine.com/open_api/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶ added in v1.8.8
type SDKClient ¶
SDKClient sdk client
func NewSDKClient ¶
NewSDKClient 创建SDKClient
func (*SDKClient) AnalyticsPost ¶ added in v1.1.0
func (c *SDKClient) AnalyticsPost(gw string, req model.ConversionRequest, resp model.Response) error
AnalyticsPost 转化回传API专用
func (*SDKClient) AnalyticsV1Post ¶ added in v1.7.12
AnalyticsV1Post 电话转化回传API专用
func (*SDKClient) Get ¶
func (c *SDKClient) Get(gw string, req model.GetRequest, resp model.Response, accessToken string) error
Get get api
func (*SDKClient) OpenGet ¶ added in v1.8.1
func (c *SDKClient) OpenGet(gw string, req model.GetRequest, resp model.Response, accessToken string) error
OpenGet get api
func (*SDKClient) Post ¶
func (c *SDKClient) Post(gw string, req model.PostRequest, resp model.Response, accessToken string) error
Post post api
func (*SDKClient) SetHttpClient ¶ added in v1.8.0
SetHttpClient 设置http.Client
func (*SDKClient) SetOperatorIP ¶ added in v1.8.0
SetOperatorIP 设置操作者IP, 支持ipv4/ipv6
func (*SDKClient) SetRateLimiter ¶ added in v1.8.8
func (c *SDKClient) SetRateLimiter(limiter RateLimiter)
SetRateLimiter 设置限流
func (*SDKClient) TrackActive ¶ added in v1.16.7
TrackActive 转化回传API专用
Click to show internal directories.
Click to hide internal directories.