Documentation ¶
Index ¶
Constants ¶
View Source
const (
JPUSH_PARAMS_COUNT = 3 //两个参数(appkey+secret+is_prod)
)
Variables ¶
View Source
var JPUSH_ALIASES_URL = "https://device.jpush.cn/v3/aliases"
View Source
var JPUSH_DEVICES_URL = "https://device.jpush.cn/v3/devices"
View Source
var JPUSH_PUSHAPI_URL = "https://api.jpush.cn/v3/push"
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Platform []string `json:"platform"` //需要推送的平台 Audience Audience `json:"audience"` //需要推送的接受者 Notification Notification `json:"notification"` Options Options `json:"options"` }
type CorrectResp ¶
type Extras ¶
type Extras struct { Url string `json:"url"` Type int32 `json:"type"` Content string `json:"content"` Sound string `json:"sound"` //新增声音文件 }
自定义字段,选填
type IncorrectResp ¶
type JPush ¶
type JPush struct {
// contains filtered or unexported fields
}
func (*JPush) PushNotification ¶
func (j *JPush) PushNotification(msg *push.Notification) (MsgID string, err error)
APP消息推送: 推送到极光服务器 platforms 指定平台,空切片内部自动转为所有平台
type Notification ¶
Click to show internal directories.
Click to hide internal directories.