subscribe

package
v1.28.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package subscribe RDS订阅adv_id增删查

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsAddRequest

type AccountsAddRequest struct {
	// AppID 开放平台调用MAPI/订阅RDS时所使用的APPID
	AppID uint64 `json:"app_id,omitempty"`
	// SubscribeTaskID 创建成功的RDS订阅任务所生成的订阅ID
	SubscribeTaskID uint64 `json:"subscribe_task_id,omitempty"`
	// Events 子事件扩展字段,可不填
	Events []string `json:"events,omitempty"`
	// CoreUserID 授权用户ID,获取方式https://open.oceanengine.com/labels/7/docs/1696710507039756
	CoreUserID uint64 `json:"core_user_id,omitempty"`
	// AdvertiserIDs 授权广告主账号ID
	AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"`
}

AccountsAddRequest 新增 Adv 订阅 API Request

func (AccountsAddRequest) Encode

func (r AccountsAddRequest) Encode() []byte

Encode implement PostRequest interface

type AccountsListRequest

type AccountsListRequest struct {
	// AppID 开放平台调用MAPI/订阅RDS时所使用的APPID
	AppID uint64 `json:"app_id,omitempty"`
	// SubscribeTaskID 创建成功的RDS订阅任务所生成的订阅ID
	SubscribeTaskID uint64 `json:"subscribe_task_id,omitempty"`
	// Events 子事件扩展字段,可不填
	Events []string `json:"events,omitempty"`
	// CoreUserID 授权用户ID,获取方式https://open.oceanengine.com/labels/7/docs/1696710507039756
	CoreUserID uint64 `json:"core_user_id,omitempty"`
	// AdvertiserIDs 授权广告主账号ID
	AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"`
	// Statuses 可选值:
	// OK 推送中
	// PENDING 新增状态
	// UNAUTHORIZED 无权限
	// UNKNOWN 未知
	Statuses []enum.SubscribeAdvStatus `json:"statuses,omitempty"`
	// Cursor 游标,默认值 0
	Cursor int `json:"cursor,omitempty"`
	// Count 页大小,默认 100, 最大值 500
	Count int `json:"count,omitempty"`
}

AccountsListRequest 查询订阅 Adv API Request

func (AccountsListRequest) Encode

func (r AccountsListRequest) Encode() string

Encode implement GetRequest interface

type AccountsListResponse

type AccountsListResponse struct {
	model.BaseResponse
	Data *AccountsListResult `json:"data,omitempty"`
}

AccountsListResponse 查询订阅 Adv API Response

type AccountsListResult

type AccountsListResult struct {
	// NextCursor 游标值
	NextCursor int `json:"next_cursor,omitempty"`
	// Count 页大小值
	Count int `json:"count,omitempty"`
	// Advertisers
	Advertisers []SubscribeAccount `json:"advertisers,omitempty"`
}

type AccountsRemoveRequest

type AccountsRemoveRequest struct {
	// AppID 开放平台调用MAPI/订阅RDS时所使用的APPID
	AppID uint64 `json:"app_id,omitempty"`
	// SubscribeTaskID 创建成功的RDS订阅任务所生成的订阅ID
	SubscribeTaskID uint64 `json:"subscribe_task_id,omitempty"`
	// Events 子事件扩展字段,可不填
	Events []string `json:"events,omitempty"`
	// CoreUserID 授权用户ID,获取方式https://open.oceanengine.com/labels/7/docs/1696710507039756
	CoreUserID uint64 `json:"core_user_id,omitempty"`
	// AdvertiserIDs 授权广告主账号ID
	AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"`
}

AccountsRemoveRequest 删除 Adv 订阅 API Request

func (AccountsRemoveRequest) Encode

func (r AccountsRemoveRequest) Encode() []byte

Encode implement PostRequest interface

type SubscribeAccount

type SubscribeAccount struct {
	Event string `json:"event,omitempty"`
	// CoreUserID 授权用户ID
	CoreUserID uint64 `json:"core_user_id,omitempty"`
	// AdvertiserID 授权广告主账号ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Status 可选值:
	// OK 推送中
	// PENDING 新增状态
	// UNAUTHORIZED 无权限
	// UNKNOWN 未知
	Status enum.SubscribeAdvStatus `json:"status,omitempty"`
	Reason string                  `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL