push

package
v0.0.0-...-b5fb168 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushEndPoint   = "https://cloudpush.aliyuncs.com/"
	Push           = "Push"
	PushAPIVersion = "2015-08-27"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

func (*Client) Push

func (this *Client) Push(args *PushArgs) error

type PushArgs

type PushArgs struct {
	/*----基础参数----*/
	//操作接口名称
	Account string
	//AppKey信息
	AppKey int64
	/*----推送目标----*/
	//推送目标类型
	Target string
	//根据Target来设定,多个值使用逗号分隔,最多支持100个。
	TargetValue string
	//设备类型
	DeviceType string
	/*----推送配置----*/
	Type string
	//Android消息标题,Android通知标题,iOS消息标题
	Title string
	//Android消息内容,Android通知内容,iOS消息内容
	Body string
	//[iOS通知内容]
	Summary string
	/*----下述配置仅作用于iOS通知任务----*/
	//[iOS通知声音]
	IOSMusic string
	//[iOS应用图标右上角角标]
	IOSBadge string
	//[iOS通知标题(iOS 10+通知显示标题]
	IOSTitle string
	//[iOS通知副标题(iOS 10+)]
	IOSSubtitle string
	//[是否使能iOS通知扩展处理(iOS 10+)]
	IOSMutableContent string
	//[设定iOS通知Category(iOS 10+)]
	IOSNotificationCategory string
	//[iOS通知的扩展属性]
	IOSExtParameters string
	//[环境信息]
	ApnsEnv string
	/*----下述配置仅作用于iOS消息----*/
	//[推送时设备不在线则这条推送会做为通知]
	Remind string
	/*----下述配置仅作用于Android通知任务----*/
	//[Android通知声音]
	AndroidMusic string
	//[点击通知后动作]
	AndroidOpenType string
	//[设定通知打开的activity]
	AndroidActivity string
	//[设置该参数后启动小米托管弹窗功能]
	XiaomiActivity string
	//[Android收到推送后打开对应的url]
	AndroidOpenUrl string
	//[设定通知的扩展属性]
	AndroidExtParameters string
	/*----推送控制----*/
	//[用于定时发送]
	PushTime string
	//[离线消息/通知是否保存]
	StoreOffline string
	//[离线消息/通知的过期时间]
	ExpireTime string
}

高级推送参数

Jump to

Keyboard shortcuts

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