Documentation ¶
Overview ¶
Package acmp Copyright 2016 The GiterLab Authors. All rights reserved.
Package acmp Copyright 2016 The GiterLab Authors. All rights reserved.
Package acmp Copyright 2016 The GiterLab Authors. All rights reserved.
Package acmp Copyright 2016 The GiterLab Authors. All rights reserved.
Index ¶
- Variables
- type AliasInfo
- type AliasInfos
- type AppDeviceStat
- type AppDeviceStats
- type AppPushStat
- type AppPushStats
- type BindAliasRequest
- type BindAliasResponse
- type BindTagRequest
- type BindTagResponse
- type CancelPushRequest
- type CancelPushResponse
- type CheckDevicesRequest
- type CheckDevicesResponse
- type Client
- type DeviceCheckInfo
- type DeviceCheckInfos
- type DeviceInfo
- type ErrorMessage
- type ListPushRecordsRequest
- type ListPushRecordsResponse
- type ListSummaryAppsRequest
- type ListSummaryAppsResponse
- type ListTagsRequest
- type ListTagsRespones
- type MessageInfo
- type MsgPushStat
- type MsgPushStats
- type PushMessageResponse
- type PushMessageToAndroidRequest
- type PushMessageToiOSRequest
- func (p *PushMessageToiOSRequest) DoActionWithException() (resp *PushMessageResponse, err error)
- func (p *PushMessageToiOSRequest) SetPushExtParameters(extParameters map[string]interface{}) *PushMessageToiOSRequest
- func (p *PushMessageToiOSRequest) SetPushTitle(title string) *PushMessageToiOSRequest
- type PushNoticeResponse
- type PushNoticeToAndroidRequest
- type PushNoticeToiOSRequest
- type QueryAliasesRequest
- type QueryAliasesRespones
- type QueryDeviceInfoRequest
- type QueryDeviceInfoResponse
- type QueryDeviceStatRequest
- type QueryDeviceStatResponse
- type QueryPushStatByAppRequest
- type QueryPushStatByAppResponse
- type QueryPushStatByMsgRequest
- type QueryPushStatByMsgResponse
- type QueryTagsRequest
- type QueryTagsRespones
- type QueryUniqueDeviceStatRequest
- type QueryUniqueDeviceStatResponse
- type RemoveTagRequest
- type RemoveTagResponse
- type Request
- type SummaryAppInfo
- type SummaryAppInfos
- type SummaryMessageInfos
- type TagInfo
- type TagInfos
- type UnbindAliasRequest
- type UnbindAliasResponse
- type UnbindTagRequest
- type UnbindTagResponse
Constants ¶
This section is empty.
Variables ¶
var HTTPDebugEnable = false
HTTPDebugEnable http调试开关
Functions ¶
This section is empty.
Types ¶
type AliasInfos ¶
type AliasInfos struct {
AliasInfos []AliasInfo `json:"AliasInfos"`
}
AliasInfos 别名信息
type AppDeviceStat ¶
type AppDeviceStat struct { Time string `json:"Time"` Count int `json:"Count"` DeviceType string `json:"DeviceType,omitempty"` }
AppDeviceStat 设备新增与留存
type AppDeviceStats ¶
type AppDeviceStats struct {
AppDeviceStats []AppDeviceStat `json:"AppDeviceStats"`
}
AppDeviceStats 设备新增与留存结构体
type AppPushStat ¶
type AppPushStat struct { Time string `json:"Time"` AcceptCount int `json:"AcceptCount"` SentCount int `json:"SentCount"` ReceivedCount int `json:"ReceivedCount"` OpenedCount int `json:"OpenedCount"` DeletedCount int `json:"DeletedCount"` }
AppPushStat APP维度推送统计结构体
type AppPushStats ¶
type AppPushStats struct {
AppPushStats []AppPushStat `json:"AppPushStats"`
}
AppPushStats APP维度推送统计结构体
type BindAliasRequest ¶
type BindAliasRequest struct {
Request *Request
}
BindAliasRequest 绑定别名请求
func BindAlias ¶
func BindAlias(appKey int, DeviceID, AliasName string) *BindAliasRequest
BindAlias 绑定别名请求接口
func (*BindAliasRequest) DoActionWithException ¶
func (b *BindAliasRequest) DoActionWithException() (resp *BindAliasResponse, err error)
DoActionWithException 发起http请求
type BindTagRequest ¶
type BindTagRequest struct {
Request *Request
}
BindTagRequest 绑定标签请求
func BindTag ¶
func BindTag(appKey int, clientKey, keyType, tagName string) *BindTagRequest
BindTag 绑定标签请求接口
func (*BindTagRequest) DoActionWithException ¶
func (b *BindTagRequest) DoActionWithException() (resp *BindTagResponse, err error)
DoActionWithException 发起http请求
type CancelPushRequest ¶
type CancelPushRequest struct {
Request *Request
}
CancelPushRequest 取消定时推送任务请求结构体
func (*CancelPushRequest) DoActionWithException ¶
func (c *CancelPushRequest) DoActionWithException() (resp *CancelPushResponse, err error)
DoActionWithException 取消定时推送任务http请求
type CancelPushResponse ¶
type CancelPushResponse struct {
ErrorMessage
}
CancelPushResponse 取消定时推送任务结构体
type CheckDevicesRequest ¶
type CheckDevicesRequest struct {
Request *Request
}
CheckDevicesRequest http请求结构体
func CheckDevices ¶
func CheckDevices(appKey int, deviceIDs string) *CheckDevicesRequest
CheckDevices 设备检查接口
func (*CheckDevicesRequest) DoActionWithException ¶
func (c *CheckDevicesRequest) DoActionWithException() (*CheckDevicesResponse, error)
DoActionWithException 发起http请求
type CheckDevicesResponse ¶
type CheckDevicesResponse struct { ErrorMessage DeviceCheckInfos *DeviceCheckInfos `json:"DeviceCheckInfos,omitempty"` }
CheckDevicesResponse 检查设备响应
func (*CheckDevicesResponse) GetDeviceInfos ¶
func (c *CheckDevicesResponse) GetDeviceInfos() *DeviceCheckInfos
GetDeviceInfos 获取响应里面的设备信息
type Client ¶
type Client struct { // API版本 Version string // SMS服务地域, 默认为cn-hangzhou Region string // SMS服务的地址,默认为(http://cloudpush.aliyuncs.com/) EndPoint string // 访问SMS服务的accessid,通过官方网站申请或通过管理员获取 AccessID string // 访问SMS服务的accesskey,通过官方网站申请或通过管理员获取 AccessKey string // 连接池中每个连接的Socket超时,单位为秒,可以为int或float。默认值为30 SocketTimeout int }
Client HTTP请求配置信息
func (*Client) SetAccessID ¶
SetAccessID 设置短信服务的accessid,通过官方网站申请或通过管理员获取
func (*Client) SetAccessKey ¶
SetAccessKey 设置短信服务的accesskey,通过官方网站申请或通过管理员获取
func (*Client) SetSocketTimeout ¶
SetSocketTimeout 设置短信服务的Socket超时,单位为秒,可以为int或float。默认值为30
type DeviceCheckInfo ¶
type DeviceCheckInfo struct { DeviceID string `json:"DeviceId"` Available string `json:"Available"` }
DeviceCheckInfo 检查设备信息
type DeviceCheckInfos ¶
type DeviceCheckInfos struct {
DeviceCheckInfos []DeviceCheckInfo `json:"DeviceCheckInfos"`
}
DeviceCheckInfos 检查设备信息
type DeviceInfo ¶
type DeviceInfo struct { BoundAccount string `json:"BoundAccount"` BoundTag string `json:"BoundTag"` BoundAlias string `json:"BoundAlias"` DeviceID string `json:"DeviceId"` DeviceToken string `json:"DeviceToken"` DeviceType int `json:"DeviceType"` IsOnline bool `json:"IsOnline"` LastOnlineTime string `json:"LastOnlineTime"` }
DeviceInfo 设备信息结构体
type ErrorMessage ¶
type ErrorMessage struct { HTTPCode int `json:"-"` RequestID *string `json:"RequestId,omitempty"` Code *string `json:"Code,omitempty"` Message *string `json:"Message,omitempty"` }
ErrorMessage 短信服务器返回的错误信息
func (*ErrorMessage) GetHTTPCode ¶
func (e *ErrorMessage) GetHTTPCode() int
GetHTTPCode 获取HTTP请求的错误码
func (*ErrorMessage) GetRequestID ¶
func (e *ErrorMessage) GetRequestID() string
GetRequestID 获取请求的ID序列
func (*ErrorMessage) SetHTTPCode ¶
func (e *ErrorMessage) SetHTTPCode(code int)
SetHTTPCode 设置HTTP错误码
type ListPushRecordsRequest ¶
type ListPushRecordsRequest struct {
Request *Request
}
ListPushRecordsRequest http请求结构体
func ListPushRecords ¶
func ListPushRecords(appKey int, pushType string, startTime, endTime int64) *ListPushRecordsRequest
ListPushRecords 查询推送列表接口
func (*ListPushRecordsRequest) DoActionWithException ¶
func (l *ListPushRecordsRequest) DoActionWithException() (resp *ListPushRecordsResponse, err error)
DoActionWithException 发起http请求
func (*ListPushRecordsRequest) SetPage ¶
func (l *ListPushRecordsRequest) SetPage(page int) *ListPushRecordsRequest
SetPage 设置请求起始页码
func (*ListPushRecordsRequest) SetPageSize ¶
func (l *ListPushRecordsRequest) SetPageSize(pageSize int) *ListPushRecordsRequest
SetPageSize 设置每页大小
type ListPushRecordsResponse ¶
type ListPushRecordsResponse struct { ErrorMessage SummaryMessageInfos *SummaryMessageInfos `json:"SummaryMessageInfos,omitempty"` }
ListPushRecordsResponse 请求响应
func (*ListPushRecordsResponse) GetSummaryMessageInfos ¶
func (l *ListPushRecordsResponse) GetSummaryMessageInfos() *SummaryMessageInfos
GetSummaryMessageInfos 获取请求结构体的get方法
func (*ListPushRecordsResponse) String ¶
func (l *ListPushRecordsResponse) String() string
String 序列化响应
type ListSummaryAppsRequest ¶
type ListSummaryAppsRequest struct {
Request *Request
}
ListSummaryAppsRequest APP概览列表请求参数
func (*ListSummaryAppsRequest) DoActionWithException ¶
func (l *ListSummaryAppsRequest) DoActionWithException() (resp *ListSummaryAppsResponse, err error)
DoActionWithException 发起HTTP请求
type ListSummaryAppsResponse ¶
type ListSummaryAppsResponse struct { ErrorMessage SummaryAppInfos *SummaryAppInfos `json:"SummaryAppInfos,omitempty"` }
ListSummaryAppsResponse APP概览列表响应参数
func (*ListSummaryAppsResponse) GetSummaryAppInfos ¶
func (l *ListSummaryAppsResponse) GetSummaryAppInfos() *SummaryAppInfos
GetSummaryAppInfos 获取APP概览列表
func (ListSummaryAppsResponse) String ¶
func (l ListSummaryAppsResponse) String() string
String 序列化成JSON字符串
type ListTagsRequest ¶
type ListTagsRequest struct {
Request *Request
}
ListTagsRequest http请求结构体
func (*ListTagsRequest) DoActionWithException ¶
func (q *ListTagsRequest) DoActionWithException() (resp *ListTagsRespones, err error)
DoActionWithException 发起http请求
type ListTagsRespones ¶
type ListTagsRespones struct { ErrorMessage TagInfos *TagInfos `json:"TagInfos,omitempty"` }
ListTagsRespones 查询标签列表信息响应体
func (*ListTagsRespones) GetTagInfos ¶
func (l *ListTagsRespones) GetTagInfos() *TagInfos
GetTagInfos 获取响应体里面标签列表信息
type MessageInfo ¶
type MessageInfo struct { MessageID string `json:"MessageId"` Type int `json:"Type"` Status int `json:"Status"` Title string `json:"Title"` Body string `json:"Body"` Summary string `json:"Summary"` AppName string `json:"AppName"` AppKey int `json:"AppKey"` DeviceType int `json:"DeviceType"` PushTime int64 `json:"PushTime"` }
MessageInfo 消息结构体
type MsgPushStat ¶
type MsgPushStat struct { MessageID string `json:"MessageId"` AcceptCount int `json:"AcceptCount"` SentCount int `json:"SentCount"` ReceivedCount int `json:"ReceivedCount"` OpenedCount int `json:"OpenedCount"` DeletedCount int `json:"DeletedCount"` }
MsgPushStat 任务维度推送统计结构体
type MsgPushStats ¶
type MsgPushStats struct {
MsgPushStats []MsgPushStat `json:"MsgPushStats"`
}
MsgPushStats 任务维度推送统计结构体
type PushMessageResponse ¶
type PushMessageResponse struct { ErrorMessage MessageID string `json:"MessageId,omitempty"` }
PushMessageResponse 推送消息响应结构体
func (*PushMessageResponse) GetMessageID ¶
func (p *PushMessageResponse) GetMessageID() string
GetMessageID 获取messageID
type PushMessageToAndroidRequest ¶
type PushMessageToAndroidRequest struct {
Request *Request
}
PushMessageToAndroidRequest 推送消息结构体
func PushMessageToAndroid ¶
func PushMessageToAndroid(appKey int, target, targetValue, title, body string) *PushMessageToAndroidRequest
PushMessageToAndroid 推送安卓消息接口
func (*PushMessageToAndroidRequest) DoActionWithException ¶
func (p *PushMessageToAndroidRequest) DoActionWithException() (resp *PushMessageResponse, err error)
DoActionWithException 发起请求
type PushMessageToiOSRequest ¶
type PushMessageToiOSRequest struct {
Request *Request
}
PushMessageToiOSRequest http请求
func PushMessageToiOS ¶
func PushMessageToiOS(appKey int, target, targetValue, body string) *PushMessageToiOSRequest
PushMessageToiOS 推送iOS消息接口
func PushNoticeToiOS ¶
func PushNoticeToiOS(appKey int, target, targetValue, apnsEnv, body string) *PushMessageToiOSRequest
PushNoticeToiOS 推送通知到iOS平台接口
func (*PushMessageToiOSRequest) DoActionWithException ¶
func (p *PushMessageToiOSRequest) DoActionWithException() (resp *PushMessageResponse, err error)
DoActionWithException 发送http请求
func (*PushMessageToiOSRequest) SetPushExtParameters ¶
func (p *PushMessageToiOSRequest) SetPushExtParameters(extParameters map[string]interface{}) *PushMessageToiOSRequest
SetPushExtParameters 设置通知额外的参数,可选
func (*PushMessageToiOSRequest) SetPushTitle ¶
func (p *PushMessageToiOSRequest) SetPushTitle(title string) *PushMessageToiOSRequest
SetPushTitle 设置通知title,可选
type PushNoticeResponse ¶
type PushNoticeResponse struct { ErrorMessage MessageID string `json:"MessageId,omitempty"` }
PushNoticeResponse 通知响应结构体
func (*PushNoticeResponse) GetMessageID ¶
func (p *PushNoticeResponse) GetMessageID() string
GetMessageID 获取通知响应的messageId
type PushNoticeToAndroidRequest ¶
type PushNoticeToAndroidRequest struct {
Request *Request
}
PushNoticeToAndroidRequest 推送通知到android平台请求结构体
func PushNoticeToAndroid ¶
func PushNoticeToAndroid(appKey int, target, targetValue, title, body string) *PushNoticeToAndroidRequest
PushNoticeToAndroid 推送通知到android平台接口
func (*PushNoticeToAndroidRequest) DoActionWithException ¶
func (p *PushNoticeToAndroidRequest) DoActionWithException() (resp *PushNoticeResponse, err error)
DoActionWithException 发起http请求
func (*PushNoticeToAndroidRequest) SetPushExtParameters ¶
func (p *PushNoticeToAndroidRequest) SetPushExtParameters(extParameters map[string]interface{}) *PushNoticeToAndroidRequest
SetPushExtParameters 设置推送额外的参数,可选
type PushNoticeToiOSRequest ¶
type PushNoticeToiOSRequest struct {
Request *Request
}
PushNoticeToiOSRequest 通知请求结构体
func (*PushNoticeToiOSRequest) DoActionWithException ¶
func (p *PushNoticeToiOSRequest) DoActionWithException() (resp *PushNoticeResponse, err error)
DoActionWithException 发起http请求
type QueryAliasesRequest ¶
type QueryAliasesRequest struct {
Request *Request
}
QueryAliasesRequest http请求结构体
func QueryAliases ¶
func QueryAliases(appKey int, deviceID string) *QueryAliasesRequest
QueryAliases 查询绑定别名请求接口
func (*QueryAliasesRequest) DoActionWithException ¶
func (q *QueryAliasesRequest) DoActionWithException() (resp *QueryAliasesRespones, err error)
DoActionWithException 发起http请求
type QueryAliasesRespones ¶
type QueryAliasesRespones struct { ErrorMessage AliasInfos *AliasInfos `json:"AliasInfos,omitempty"` }
QueryAliasesRespones 查询别名信息响应体
func (*QueryAliasesRespones) GetAliasInfos ¶
func (q *QueryAliasesRespones) GetAliasInfos() *AliasInfos
GetAliasInfos 获取响应体的别名信息
type QueryDeviceInfoRequest ¶
type QueryDeviceInfoRequest struct {
Request *Request
}
QueryDeviceInfoRequest http请求结构体
func QueryDeviceInfo ¶
func QueryDeviceInfo(appKey int, deviceID string) *QueryDeviceInfoRequest
QueryDeviceInfo 查询设备信息接口
func (*QueryDeviceInfoRequest) DoActionWithException ¶
func (q *QueryDeviceInfoRequest) DoActionWithException() (*QueryDeviceInfoResponse, error)
DoActionWithException 发起http请求
type QueryDeviceInfoResponse ¶
type QueryDeviceInfoResponse struct { ErrorMessage DeviceInfo *DeviceInfo `json:"DeviceInfo,omitempty"` }
QueryDeviceInfoResponse 查询设备信息响应
func (*QueryDeviceInfoResponse) GetDeviceInfo ¶
func (q *QueryDeviceInfoResponse) GetDeviceInfo() *DeviceInfo
GetDeviceInfo 获取响应里面的设备信息
func (*QueryDeviceInfoResponse) String ¶
func (q *QueryDeviceInfoResponse) String() string
String 序列化响应
type QueryDeviceStatRequest ¶
type QueryDeviceStatRequest struct {
Request *Request
}
QueryDeviceStatRequest 请求结构体
func QueryDeviceStat ¶
func QueryDeviceStat(appKey int, startTime, endTime int64, deviceType, queryType string) *QueryDeviceStatRequest
QueryDeviceStat 发起http请求接口
func (*QueryDeviceStatRequest) DoActionWithException ¶
func (q *QueryDeviceStatRequest) DoActionWithException() (*QueryDeviceStatResponse, error)
DoActionWithException 发起http请求
type QueryDeviceStatResponse ¶
type QueryDeviceStatResponse struct { ErrorMessage AppDeviceStats *AppDeviceStats `json:"AppDeviceStats,omitempty"` }
QueryDeviceStatResponse 响应结构体
func (*QueryDeviceStatResponse) GetAppDeviceStats ¶
func (q *QueryDeviceStatResponse) GetAppDeviceStats() *AppDeviceStats
GetAppDeviceStats 获取响应的设备新增与留存信息
func (*QueryDeviceStatResponse) String ¶
func (q *QueryDeviceStatResponse) String() string
String 序列化
type QueryPushStatByAppRequest ¶
type QueryPushStatByAppRequest struct {
Request *Request
}
QueryPushStatByAppRequest http请求结构体
func QueryPushStatByApp ¶
func QueryPushStatByApp(appKey int, startTime, endTime int64, granularity string) *QueryPushStatByAppRequest
QueryPushStatByApp http请求接口
func (*QueryPushStatByAppRequest) DoActionWithException ¶
func (q *QueryPushStatByAppRequest) DoActionWithException() (resp *QueryPushStatByAppResponse, err error)
DoActionWithException 发起http请求
type QueryPushStatByAppResponse ¶
type QueryPushStatByAppResponse struct { ErrorMessage AppPushStats *AppPushStats `json:"AppPushStats,omitempty"` }
QueryPushStatByAppResponse 响应结构体
func (*QueryPushStatByAppResponse) GetAppPushStats ¶
func (q *QueryPushStatByAppResponse) GetAppPushStats() *AppPushStats
GetAppPushStats 获取响应体的APP维度推送统计结构体
func (*QueryPushStatByAppResponse) String ¶
func (q *QueryPushStatByAppResponse) String() string
String 序列化
type QueryPushStatByMsgRequest ¶
type QueryPushStatByMsgRequest struct {
Request *Request
}
QueryPushStatByMsgRequest http请求结构体
func QueryPushStatByMsg ¶
func QueryPushStatByMsg(appKey int, messageID string) *QueryPushStatByMsgRequest
QueryPushStatByMsg http请求接口
func (*QueryPushStatByMsgRequest) DoActionWithException ¶
func (q *QueryPushStatByMsgRequest) DoActionWithException() (resp *QueryPushStatByMsgResponse, err error)
DoActionWithException http请求
type QueryPushStatByMsgResponse ¶
type QueryPushStatByMsgResponse struct { ErrorMessage MsgPushStats *MsgPushStats `json:"MsgPushStats,omitempty"` }
QueryPushStatByMsgResponse 响应结构体
func (*QueryPushStatByMsgResponse) GetMsgPushStats ¶
func (q *QueryPushStatByMsgResponse) GetMsgPushStats() *MsgPushStats
GetMsgPushStats 获取响应结构体的任务维度推送统计结构体
func (*QueryPushStatByMsgResponse) String ¶
func (q *QueryPushStatByMsgResponse) String() string
String 序列化
type QueryTagsRequest ¶
type QueryTagsRequest struct {
Request *Request
}
QueryTagsRequest http请求结构体
func QueryTags ¶
func QueryTags(appKey int, clientKey, keyType string) *QueryTagsRequest
QueryTags 查询绑定标签请求接口
func (*QueryTagsRequest) DoActionWithException ¶
func (q *QueryTagsRequest) DoActionWithException() (resp *QueryTagsRespones, err error)
DoActionWithException 发起http请求
type QueryTagsRespones ¶
type QueryTagsRespones struct { ErrorMessage TagInfos *TagInfos `json:"TagInfos,omitempty"` }
QueryTagsRespones 查询标签信息响应体
func (*QueryTagsRespones) GetTagInfos ¶
func (q *QueryTagsRespones) GetTagInfos() *TagInfos
GetTagInfos 获取响应体内标签信息
type QueryUniqueDeviceStatRequest ¶
type QueryUniqueDeviceStatRequest struct {
Request *Request
}
QueryUniqueDeviceStatRequest http请求结构体
func QueryUniqueDeviceStat ¶
func QueryUniqueDeviceStat(appKey int, startTime, endTime int64) *QueryUniqueDeviceStatRequest
QueryUniqueDeviceStat 获取去重设备接口
func (*QueryUniqueDeviceStatRequest) DoActionWithException ¶
func (q *QueryUniqueDeviceStatRequest) DoActionWithException() (*QueryUniqueDeviceStatResponse, error)
DoActionWithException 发起http请求
type QueryUniqueDeviceStatResponse ¶
type QueryUniqueDeviceStatResponse struct { ErrorMessage AppDeviceStats *AppDeviceStats `json:"AppDeviceStats,omitempty"` }
QueryUniqueDeviceStatResponse 查询去重设备返回响应
func (*QueryUniqueDeviceStatResponse) GetAppDeviceStats ¶
func (q *QueryUniqueDeviceStatResponse) GetAppDeviceStats() *AppDeviceStats
GetAppDeviceStats 获取响应体里面的设备状态
func (*QueryUniqueDeviceStatResponse) String ¶
func (q *QueryUniqueDeviceStatResponse) String() string
String 序列化响应
type RemoveTagRequest ¶
type RemoveTagRequest struct {
Request *Request
}
RemoveTagRequest 绑定标签请求
func (*RemoveTagRequest) DoActionWithException ¶
func (r *RemoveTagRequest) DoActionWithException() (resp *RemoveTagResponse, err error)
DoActionWithException 发起http请求
type Request ¶
Request 请求参数设置
func (*Request) CalcStringToSign ¶
CalcStringToSign 计算签名字符串
type SummaryAppInfo ¶
type SummaryAppInfo struct { AppKey int `json:"AppKey"` // "AppKey": "129376929" AppName string `json:"AppName"` // "AppName": "移动推送APP1" Platform string `json:"Platform"` // "Platform": "Android" }
SummaryAppInfo APP概览列表信息
type SummaryAppInfos ¶
type SummaryAppInfos struct {
SummaryAppInfos []SummaryAppInfo `json:"SummaryAppInfo"`
}
SummaryAppInfos APP概览列表
type SummaryMessageInfos ¶
type SummaryMessageInfos struct { Total int `json:"Total"` Page int `json:"Page"` PageSize int `json:"PageSize"` MessageInfos []*MessageInfo `json:"MessageInfos"` }
SummaryMessageInfos 消息结构体
type UnbindAliasRequest ¶
type UnbindAliasRequest struct {
Request *Request
}
UnbindAliasRequest 解绑别名请求
func UnbindAlias ¶
func UnbindAlias(appKey int, deviceID string) *UnbindAliasRequest
UnbindAlias 解除绑定别名请求接口
func (*UnbindAliasRequest) DoActionWithException ¶
func (u *UnbindAliasRequest) DoActionWithException() (resp *UnbindAliasResponse, err error)
DoActionWithException 发起http请求
func (*UnbindAliasRequest) SetAliasName ¶
func (u *UnbindAliasRequest) SetAliasName(aliasName string) *UnbindAliasRequest
SetAliasName 设置解绑别名,可选
func (*UnbindAliasRequest) SetUnbindAll ¶
func (u *UnbindAliasRequest) SetUnbindAll(unbindAll bool) *UnbindAliasRequest
SetUnbindAll 设置是否解绑所有别名,可选
type UnbindAliasResponse ¶
type UnbindAliasResponse struct {
ErrorMessage
}
UnbindAliasResponse 返回响应体
type UnbindTagRequest ¶
type UnbindTagRequest struct {
Request *Request
}
UnbindTagRequest 绑定标签请求
func UnbindTag ¶
func UnbindTag(appKey int, clientKey, keyType, tagName string) *UnbindTagRequest
UnbindTag 解除绑定标签请求接口
func (*UnbindTagRequest) DoActionWithException ¶
func (u *UnbindTagRequest) DoActionWithException() (resp *UnbindTagResponse, err error)
DoActionWithException 发起http请求
Source Files ¶
- bind_alias_request.go
- bind_tag_request.go
- cancel_push_request.go
- check_devices_request.go
- common.go
- errors.go
- list_summary_apps_request.go
- list_summary_push_request.go
- list_tags_request.go
- push_message_to_android_request.go
- push_message_to_ios_request.go
- push_notice_to_android_request.go
- push_notice_to_ios_request.go
- query_aliases_request.go
- query_device_info_request.go
- query_device_stat_request.go
- query_push_stat_by_app_request.go
- query_push_stat_by_msg_request.go
- query_tags_request.go
- query_unique_device_stat_request.go
- remove_tag_request.go
- signature.go
- unbind_alias_request.go
- unbind_tag_request.go