acmp

package
v0.0.0-...-b37837e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Apache-2.0 Imports: 17 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
var HTTPDebugEnable = false

HTTPDebugEnable http调试开关

Functions

This section is empty.

Types

type AliasInfo

type AliasInfo struct {
	AliasName string `json:"AliasName"`
}

AliasInfo 别名信息结构体

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 BindAliasResponse

type BindAliasResponse struct {
	ErrorMessage
}

BindAliasResponse 返回响应体

func (*BindAliasResponse) String

func (l *BindAliasResponse) String() string

String 序列化响应

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 BindTagResponse

type BindTagResponse struct {
	ErrorMessage
}

BindTagResponse 返回响应体

func (*BindTagResponse) String

func (l *BindTagResponse) String() string

String 序列化响应

type CancelPushRequest

type CancelPushRequest struct {
	Request *Request
}

CancelPushRequest 取消定时推送任务请求结构体

func CancelPush

func CancelPush(messageID string) *CancelPushRequest

CancelPush 取消定时推送任务接口

func (*CancelPushRequest) DoActionWithException

func (c *CancelPushRequest) DoActionWithException() (resp *CancelPushResponse, err error)

DoActionWithException 取消定时推送任务http请求

type CancelPushResponse

type CancelPushResponse struct {
	ErrorMessage
}

CancelPushResponse 取消定时推送任务结构体

func (*CancelPushResponse) String

func (c *CancelPushResponse) String() string

String 响应序列化

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 获取响应里面的设备信息

func (*CheckDevicesResponse) String

func (c *CheckDevicesResponse) String() string

String 序列化响应信息

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 New

func New(accessid, accesskey string) *Client

New 兼容 SDK

func SetACLClient

func SetACLClient(accessid, accesskey string) *Client

SetACLClient 配置默认的服务权限信息

func (*Client) SetAccessID

func (c *Client) SetAccessID(accessid string)

SetAccessID 设置短信服务的accessid,通过官方网站申请或通过管理员获取

func (*Client) SetAccessKey

func (c *Client) SetAccessKey(accesskey string)

SetAccessKey 设置短信服务的accesskey,通过官方网站申请或通过管理员获取

func (*Client) SetEndPoint

func (c *Client) SetEndPoint(endPoint string)

SetEndPoint 设置短信服务器

func (*Client) SetRegion

func (c *Client) SetRegion(region string)

SetRegion 设置SMS服务地域

func (*Client) SetSocketTimeout

func (c *Client) SetSocketTimeout(sockettimeout int)

SetSocketTimeout 设置短信服务的Socket超时,单位为秒,可以为int或float。默认值为30

func (*Client) SetVersion

func (c *Client) SetVersion(version string)

SetVersion API版本

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) Error

func (e *ErrorMessage) Error() string

Error 序列化成字符串

func (*ErrorMessage) GetCode

func (e *ErrorMessage) GetCode() string

GetCode 获取请求的错误码

func (*ErrorMessage) GetHTTPCode

func (e *ErrorMessage) GetHTTPCode() int

GetHTTPCode 获取HTTP请求的错误码

func (*ErrorMessage) GetMessage

func (e *ErrorMessage) GetMessage() string

GetMessage 获取错误信息

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

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 ListSummaryApps

func ListSummaryApps() *ListSummaryAppsRequest

ListSummaryApps 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 ListTags

func ListTags(appKey int) *ListTagsRequest

ListTags 查看标签列表请求接口

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 获取响应体里面标签列表信息

func (*ListTagsRespones) String

func (l *ListTagsRespones) String() string

String 序列化响应

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

func (*PushMessageResponse) String

func (p *PushMessageResponse) String() string

String 序列化响应

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

func (*PushNoticeResponse) String

func (p *PushNoticeResponse) String() string

String 序列化响应

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 获取响应体的别名信息

func (*QueryAliasesRespones) String

func (q *QueryAliasesRespones) String() string

String 序列化响应

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 获取响应体内标签信息

func (*QueryTagsRespones) String

func (q *QueryTagsRespones) String() string

String 序列化响应

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

String 序列化响应

type RemoveTagRequest

type RemoveTagRequest struct {
	Request *Request
}

RemoveTagRequest 绑定标签请求

func RemoveTag

func RemoveTag(appKey int, tagName string) *RemoveTagRequest

RemoveTag 删除标签请求接口

func (*RemoveTagRequest) DoActionWithException

func (r *RemoveTagRequest) DoActionWithException() (resp *RemoveTagResponse, err error)

DoActionWithException 发起http请求

type RemoveTagResponse

type RemoveTagResponse struct {
	ErrorMessage
}

RemoveTagResponse 返回响应体

func (*RemoveTagResponse) String

func (l *RemoveTagResponse) String() string

String 序列化响应

type Request

type Request struct {
	Param map[string]string
}

Request 请求参数设置

func (*Request) CalcStringToSign

func (r *Request) CalcStringToSign(httpMethod string) string

CalcStringToSign 计算签名字符串

func (*Request) Do

func (r *Request) Do(action string) (body []byte, httpCode int, err error)

Do 发送HTTP请求

func (*Request) Get

func (r *Request) Get(key string) string

Get 获取请求参数

func (*Request) Put

func (r *Request) Put(key, value string) error

Put 添加请求参数

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 TagInfo

type TagInfo struct {
	TagName string `json:"TagName"`
}

TagInfo 标签信息结构体

type TagInfos

type TagInfos struct {
	TagInfos []TagInfo `json:"TagInfos"`
}

TagInfos 标签信息

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 返回响应体

func (*UnbindAliasResponse) String

func (l *UnbindAliasResponse) String() string

String 序列化响应

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请求

type UnbindTagResponse

type UnbindTagResponse struct {
	ErrorMessage
}

UnbindTagResponse 返回响应体

func (*UnbindTagResponse) String

func (l *UnbindTagResponse) String() string

String 序列化响应

Jump to

Keyboard shortcuts

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