Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback struct { // 【可选】数据临时回调地址。 // - 指定后以此处指定为准,仅针对这一次推送请求生效; // - 不指定,则以极光后台配置为准。 URL string `json:"url,omitempty"` // 【可选】需要回调给用户的自定义参数。 Params map[string]interface{} `json:"params,omitempty"` // 【可选】回调数据类型。 // - 可选值为 {1, 2, 3, 8, 9, 10, 11},包括 Received = 1, Clicked = 2, Push = 8 和它们的任意 or 组合。 Type Type `json:"type,omitempty"` }
回调参数。
- 通过指定 Callback 参数,方便用户临时变更回调 URL 或者回调带上其自定义参数,满足其日常业务需求;
- 此功能仅针对极光 VIP 用户提供,主要提供消息送达、点击回执数据。
Click to show internal directories.
Click to hide internal directories.