Documentation ¶
Index ¶
- type JPushClient
- func (jpc *JPushClient) CheckTagUserExists(tag string, registrationId string) (*device.CheckTagUserExistsResult, error)
- func (jpc *JPushClient) DeleteAlias(alias string, platforms []string) (*common.ResponseBase, error)
- func (jpc *JPushClient) DeleteTag(tag string, platforms []string) (*common.ResponseBase, error)
- func (jpc *JPushClient) GetAliasUsers(alias string, platforms []string) (*device.GetAliasUsersResult, error)
- func (jpc *JPushClient) GetReceivedReport(msgIds []uint64) (*report.ReceiveReport, error)
- func (jpc *JPushClient) GetTags() (*device.GetTagsResult, error)
- func (jpc *JPushClient) Push(payload *push.PushObject) (*push.PushResult, error)
- func (jpc *JPushClient) PushValidate(payload *push.PushObject) (*push.PushResult, error)
- func (jpc *JPushClient) QueryDevice(registrationId string) (*device.QueryDeviceResult, error)
- func (jpc *JPushClient) SetDebug(debug bool)
- func (jpc *JPushClient) UpdateDevice(registrationId string, payload *device.DeviceUpdate) (*common.ResponseBase, error)
- func (jpc *JPushClient) UpdateTagUsers(tag string, payload *device.UpdateTagUsersArgs) (*common.ResponseBase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JPushClient ¶
type JPushClient struct {
// contains filtered or unexported fields
}
JPush 的 Golang 推送客户端 详情: http://docs.jpush.io/server/rest_api_v3_push/
func NewJPushClient ¶
func NewJPushClient(appKey string, masterSecret string) *JPushClient
func (*JPushClient) CheckTagUserExists ¶
func (jpc *JPushClient) CheckTagUserExists(tag string, registrationId string) (*device.CheckTagUserExistsResult, error)
判断设备与标签的绑定
func (*JPushClient) DeleteAlias ¶
func (jpc *JPushClient) DeleteAlias(alias string, platforms []string) (*common.ResponseBase, error)
删除别名 (与设备的绑定关系)
func (*JPushClient) DeleteTag ¶
func (jpc *JPushClient) DeleteTag(tag string, platforms []string) (*common.ResponseBase, error)
删除标签 (与设备的绑定关系)
func (*JPushClient) GetAliasUsers ¶
func (jpc *JPushClient) GetAliasUsers(alias string, platforms []string) (*device.GetAliasUsersResult, error)
查询别名 (与设备的绑定关系)
func (*JPushClient) GetReceivedReport ¶
func (jpc *JPushClient) GetReceivedReport(msgIds []uint64) (*report.ReceiveReport, error)
送达统计
func (*JPushClient) GetTags ¶
func (jpc *JPushClient) GetTags() (*device.GetTagsResult, error)
查询标签列表
func (*JPushClient) Push ¶
func (jpc *JPushClient) Push(payload *push.PushObject) (*push.PushResult, error)
推送 API
func (*JPushClient) PushValidate ¶
func (jpc *JPushClient) PushValidate(payload *push.PushObject) (*push.PushResult, error)
推送校验 API, 只用于验证推送调用是否能够成功,与推送 API 的区别在于:不向用户发送任何消息。
func (*JPushClient) QueryDevice ¶
func (jpc *JPushClient) QueryDevice(registrationId string) (*device.QueryDeviceResult, error)
查询设备(设备的别名与标签)
func (*JPushClient) UpdateDevice ¶
func (jpc *JPushClient) UpdateDevice(registrationId string, payload *device.DeviceUpdate) (*common.ResponseBase, error)
更新设备 (设置的别名与标签)
func (*JPushClient) UpdateTagUsers ¶
func (jpc *JPushClient) UpdateTagUsers(tag string, payload *device.UpdateTagUsersArgs) (*common.ResponseBase, error)
更新标签 (与设备的绑定的关系)
Click to show internal directories.
Click to hide internal directories.