cloudpush

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cloudpush 包含百川推送相关结构体

https://open.taobao.com/API.htm?docType=2&docId=25038

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseTaobaoCloudpushMessageAndroidAPIRequest added in v1.3.4

func ReleaseTaobaoCloudpushMessageAndroidAPIRequest(v *TaobaoCloudpushMessageAndroidAPIRequest)

ReleaseTaobaoCloudpushMessageAndroidAPIRequest 将 TaobaoCloudpushMessageAndroidAPIRequest 放入 sync.Pool

func ReleaseTaobaoCloudpushMessageAndroidAPIResponse added in v1.3.4

func ReleaseTaobaoCloudpushMessageAndroidAPIResponse(v *TaobaoCloudpushMessageAndroidAPIResponse)

ReleaseTaobaoCloudpushMessageAndroidAPIResponse 将 TaobaoCloudpushMessageAndroidAPIResponse 保存到 sync.Pool

func ReleaseTaobaoCloudpushMessageIosAPIRequest added in v1.3.4

func ReleaseTaobaoCloudpushMessageIosAPIRequest(v *TaobaoCloudpushMessageIosAPIRequest)

ReleaseTaobaoCloudpushMessageIosAPIRequest 将 TaobaoCloudpushMessageIosAPIRequest 放入 sync.Pool

func ReleaseTaobaoCloudpushMessageIosAPIResponse added in v1.3.4

func ReleaseTaobaoCloudpushMessageIosAPIResponse(v *TaobaoCloudpushMessageIosAPIResponse)

ReleaseTaobaoCloudpushMessageIosAPIResponse 将 TaobaoCloudpushMessageIosAPIResponse 保存到 sync.Pool

func ReleaseTaobaoCloudpushNoticeAndroidAPIRequest added in v1.3.4

func ReleaseTaobaoCloudpushNoticeAndroidAPIRequest(v *TaobaoCloudpushNoticeAndroidAPIRequest)

ReleaseTaobaoCloudpushNoticeAndroidAPIRequest 将 TaobaoCloudpushNoticeAndroidAPIRequest 放入 sync.Pool

func ReleaseTaobaoCloudpushNoticeAndroidAPIResponse added in v1.3.4

func ReleaseTaobaoCloudpushNoticeAndroidAPIResponse(v *TaobaoCloudpushNoticeAndroidAPIResponse)

ReleaseTaobaoCloudpushNoticeAndroidAPIResponse 将 TaobaoCloudpushNoticeAndroidAPIResponse 保存到 sync.Pool

func ReleaseTaobaoCloudpushNoticeIosAPIRequest added in v1.3.4

func ReleaseTaobaoCloudpushNoticeIosAPIRequest(v *TaobaoCloudpushNoticeIosAPIRequest)

ReleaseTaobaoCloudpushNoticeIosAPIRequest 将 TaobaoCloudpushNoticeIosAPIRequest 放入 sync.Pool

func ReleaseTaobaoCloudpushNoticeIosAPIResponse added in v1.3.4

func ReleaseTaobaoCloudpushNoticeIosAPIResponse(v *TaobaoCloudpushNoticeIosAPIResponse)

ReleaseTaobaoCloudpushNoticeIosAPIResponse 将 TaobaoCloudpushNoticeIosAPIResponse 保存到 sync.Pool

func ReleaseTaobaoCloudpushPushAPIRequest added in v1.3.4

func ReleaseTaobaoCloudpushPushAPIRequest(v *TaobaoCloudpushPushAPIRequest)

ReleaseTaobaoCloudpushPushAPIRequest 将 TaobaoCloudpushPushAPIRequest 放入 sync.Pool

func ReleaseTaobaoCloudpushPushAPIResponse added in v1.3.4

func ReleaseTaobaoCloudpushPushAPIResponse(v *TaobaoCloudpushPushAPIResponse)

ReleaseTaobaoCloudpushPushAPIResponse 将 TaobaoCloudpushPushAPIResponse 保存到 sync.Pool

Types

type TaobaoCloudpushMessageAndroidAPIRequest

type TaobaoCloudpushMessageAndroidAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoCloudpushMessageAndroidAPIRequest 百川云推送发送消息给android API请求 taobao.cloudpush.message.android

百川用户使用云推送发送消息给android

func GetTaobaoCloudpushMessageAndroidAPIRequest added in v1.3.4

func GetTaobaoCloudpushMessageAndroidAPIRequest() *TaobaoCloudpushMessageAndroidAPIRequest

GetTaobaoCloudpushMessageAndroidRequest 从 sync.Pool 获取 TaobaoCloudpushMessageAndroidAPIRequest

func NewTaobaoCloudpushMessageAndroidRequest

func NewTaobaoCloudpushMessageAndroidRequest() *TaobaoCloudpushMessageAndroidAPIRequest

NewTaobaoCloudpushMessageAndroidRequest 初始化TaobaoCloudpushMessageAndroidAPIRequest对象

func (TaobaoCloudpushMessageAndroidAPIRequest) GetApiMethodName

func (r TaobaoCloudpushMessageAndroidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCloudpushMessageAndroidAPIRequest) GetApiParams

func (r TaobaoCloudpushMessageAndroidAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCloudpushMessageAndroidAPIRequest) GetBody

GetBody Body Getter

func (TaobaoCloudpushMessageAndroidAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoCloudpushMessageAndroidAPIRequest) GetTarget

GetTarget Target Getter

func (TaobaoCloudpushMessageAndroidAPIRequest) GetTargetValue

GetTargetValue TargetValue Getter

func (*TaobaoCloudpushMessageAndroidAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoCloudpushMessageAndroidAPIRequest) SetBody

SetBody is Body Setter 发送的消息内容.

func (*TaobaoCloudpushMessageAndroidAPIRequest) SetTarget

SetTarget is Target Setter 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部

func (*TaobaoCloudpushMessageAndroidAPIRequest) SetTargetValue

func (r *TaobaoCloudpushMessageAndroidAPIRequest) SetTargetValue(_targetValue string) error

SetTargetValue is TargetValue Setter 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔

type TaobaoCloudpushMessageAndroidAPIResponse

type TaobaoCloudpushMessageAndroidAPIResponse struct {
	model.CommonResponse
	TaobaoCloudpushMessageAndroidAPIResponseModel
}

TaobaoCloudpushMessageAndroidAPIResponse 百川云推送发送消息给android API返回值 taobao.cloudpush.message.android

百川用户使用云推送发送消息给android

func GetTaobaoCloudpushMessageAndroidAPIResponse added in v1.3.4

func GetTaobaoCloudpushMessageAndroidAPIResponse() *TaobaoCloudpushMessageAndroidAPIResponse

GetTaobaoCloudpushMessageAndroidAPIResponse 从 sync.Pool 获取 TaobaoCloudpushMessageAndroidAPIResponse

func (*TaobaoCloudpushMessageAndroidAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushMessageAndroidAPIResponseModel

type TaobaoCloudpushMessageAndroidAPIResponseModel struct {
	XMLName xml.Name `xml:"cloudpush_message_android_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求失败后返回的错误信息.
	RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"`
	// 若请求失败,则返回对应的error code.
	RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"`
	// 请求是否成功.
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoCloudpushMessageAndroidAPIResponseModel is 百川云推送发送消息给android 成功返回结果

func (*TaobaoCloudpushMessageAndroidAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushMessageIosAPIRequest

type TaobaoCloudpushMessageIosAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoCloudpushMessageIosAPIRequest 百川云推送发送消息给ios API请求 taobao.cloudpush.message.ios

百川云推送发送消息给iOS设备.

func GetTaobaoCloudpushMessageIosAPIRequest added in v1.3.4

func GetTaobaoCloudpushMessageIosAPIRequest() *TaobaoCloudpushMessageIosAPIRequest

GetTaobaoCloudpushMessageIosRequest 从 sync.Pool 获取 TaobaoCloudpushMessageIosAPIRequest

func NewTaobaoCloudpushMessageIosRequest

func NewTaobaoCloudpushMessageIosRequest() *TaobaoCloudpushMessageIosAPIRequest

NewTaobaoCloudpushMessageIosRequest 初始化TaobaoCloudpushMessageIosAPIRequest对象

func (TaobaoCloudpushMessageIosAPIRequest) GetApiMethodName

func (r TaobaoCloudpushMessageIosAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCloudpushMessageIosAPIRequest) GetApiParams

func (r TaobaoCloudpushMessageIosAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCloudpushMessageIosAPIRequest) GetBody

GetBody Body Getter

func (TaobaoCloudpushMessageIosAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoCloudpushMessageIosAPIRequest) GetTarget

GetTarget Target Getter

func (TaobaoCloudpushMessageIosAPIRequest) GetTargetValue

func (r TaobaoCloudpushMessageIosAPIRequest) GetTargetValue() string

GetTargetValue TargetValue Getter

func (*TaobaoCloudpushMessageIosAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoCloudpushMessageIosAPIRequest) SetBody

SetBody is Body Setter 发送的消息内容.

func (*TaobaoCloudpushMessageIosAPIRequest) SetTarget

func (r *TaobaoCloudpushMessageIosAPIRequest) SetTarget(_target string) error

SetTarget is Target Setter 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部

func (*TaobaoCloudpushMessageIosAPIRequest) SetTargetValue

func (r *TaobaoCloudpushMessageIosAPIRequest) SetTargetValue(_targetValue string) error

SetTargetValue is TargetValue Setter 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔

type TaobaoCloudpushMessageIosAPIResponse

type TaobaoCloudpushMessageIosAPIResponse struct {
	model.CommonResponse
	TaobaoCloudpushMessageIosAPIResponseModel
}

TaobaoCloudpushMessageIosAPIResponse 百川云推送发送消息给ios API返回值 taobao.cloudpush.message.ios

百川云推送发送消息给iOS设备.

func GetTaobaoCloudpushMessageIosAPIResponse added in v1.3.4

func GetTaobaoCloudpushMessageIosAPIResponse() *TaobaoCloudpushMessageIosAPIResponse

GetTaobaoCloudpushMessageIosAPIResponse 从 sync.Pool 获取 TaobaoCloudpushMessageIosAPIResponse

func (*TaobaoCloudpushMessageIosAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushMessageIosAPIResponseModel

type TaobaoCloudpushMessageIosAPIResponseModel struct {
	XMLName xml.Name `xml:"cloudpush_message_ios_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求失败时候的错误信息.
	RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"`
	// 请求出现错误的错误代码.
	RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"`
	// 请求是否成功.
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoCloudpushMessageIosAPIResponseModel is 百川云推送发送消息给ios 成功返回结果

func (*TaobaoCloudpushMessageIosAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushNoticeAndroidAPIRequest

type TaobaoCloudpushNoticeAndroidAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoCloudpushNoticeAndroidAPIRequest 百川云推送发送通知给android API请求 taobao.cloudpush.notice.android

百川云推送发送通知给android

func GetTaobaoCloudpushNoticeAndroidAPIRequest added in v1.3.4

func GetTaobaoCloudpushNoticeAndroidAPIRequest() *TaobaoCloudpushNoticeAndroidAPIRequest

GetTaobaoCloudpushNoticeAndroidRequest 从 sync.Pool 获取 TaobaoCloudpushNoticeAndroidAPIRequest

func NewTaobaoCloudpushNoticeAndroidRequest

func NewTaobaoCloudpushNoticeAndroidRequest() *TaobaoCloudpushNoticeAndroidAPIRequest

NewTaobaoCloudpushNoticeAndroidRequest 初始化TaobaoCloudpushNoticeAndroidAPIRequest对象

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetApiMethodName

func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetApiParams

func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetSummary

GetSummary Summary Getter

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetTarget

GetTarget Target Getter

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetTargetValue

GetTargetValue TargetValue Getter

func (TaobaoCloudpushNoticeAndroidAPIRequest) GetTitle

GetTitle Title Getter

func (*TaobaoCloudpushNoticeAndroidAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoCloudpushNoticeAndroidAPIRequest) SetSummary

func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetSummary(_summary string) error

SetSummary is Summary Setter 通知摘要

func (*TaobaoCloudpushNoticeAndroidAPIRequest) SetTarget

func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetTarget(_target string) error

SetTarget is Target Setter 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部

func (*TaobaoCloudpushNoticeAndroidAPIRequest) SetTargetValue

func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetTargetValue(_targetValue string) error

SetTargetValue is TargetValue Setter 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔

func (*TaobaoCloudpushNoticeAndroidAPIRequest) SetTitle

SetTitle is Title Setter 通知的标题.

type TaobaoCloudpushNoticeAndroidAPIResponse

type TaobaoCloudpushNoticeAndroidAPIResponse struct {
	model.CommonResponse
	TaobaoCloudpushNoticeAndroidAPIResponseModel
}

TaobaoCloudpushNoticeAndroidAPIResponse 百川云推送发送通知给android API返回值 taobao.cloudpush.notice.android

百川云推送发送通知给android

func GetTaobaoCloudpushNoticeAndroidAPIResponse added in v1.3.4

func GetTaobaoCloudpushNoticeAndroidAPIResponse() *TaobaoCloudpushNoticeAndroidAPIResponse

GetTaobaoCloudpushNoticeAndroidAPIResponse 从 sync.Pool 获取 TaobaoCloudpushNoticeAndroidAPIResponse

func (*TaobaoCloudpushNoticeAndroidAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushNoticeAndroidAPIResponseModel

type TaobaoCloudpushNoticeAndroidAPIResponseModel struct {
	XMLName xml.Name `xml:"cloudpush_notice_android_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求的错误信息.
	RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"`
	// 请求的错误代码.
	RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"`
	// 请求是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoCloudpushNoticeAndroidAPIResponseModel is 百川云推送发送通知给android 成功返回结果

func (*TaobaoCloudpushNoticeAndroidAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushNoticeIosAPIRequest

type TaobaoCloudpushNoticeIosAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoCloudpushNoticeIosAPIRequest 推送通知给ios设备 API请求 taobao.cloudpush.notice.ios

推送通知给ios设备

func GetTaobaoCloudpushNoticeIosAPIRequest added in v1.3.4

func GetTaobaoCloudpushNoticeIosAPIRequest() *TaobaoCloudpushNoticeIosAPIRequest

GetTaobaoCloudpushNoticeIosRequest 从 sync.Pool 获取 TaobaoCloudpushNoticeIosAPIRequest

func NewTaobaoCloudpushNoticeIosRequest

func NewTaobaoCloudpushNoticeIosRequest() *TaobaoCloudpushNoticeIosAPIRequest

NewTaobaoCloudpushNoticeIosRequest 初始化TaobaoCloudpushNoticeIosAPIRequest对象

func (TaobaoCloudpushNoticeIosAPIRequest) GetApiMethodName

func (r TaobaoCloudpushNoticeIosAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCloudpushNoticeIosAPIRequest) GetApiParams

func (r TaobaoCloudpushNoticeIosAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCloudpushNoticeIosAPIRequest) GetEnv

GetEnv Env Getter

func (TaobaoCloudpushNoticeIosAPIRequest) GetExt

GetExt Ext Getter

func (TaobaoCloudpushNoticeIosAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoCloudpushNoticeIosAPIRequest) GetSummary

GetSummary Summary Getter

func (TaobaoCloudpushNoticeIosAPIRequest) GetTarget

GetTarget Target Getter

func (TaobaoCloudpushNoticeIosAPIRequest) GetTargetValue

func (r TaobaoCloudpushNoticeIosAPIRequest) GetTargetValue() string

GetTargetValue TargetValue Getter

func (*TaobaoCloudpushNoticeIosAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoCloudpushNoticeIosAPIRequest) SetEnv

SetEnv is Env Setter iOS的通知是通过APNS中心来发送的,需要填写对应的环境信息. DEV:表示开发环境, PRODUCT: 表示生产环境.

func (*TaobaoCloudpushNoticeIosAPIRequest) SetExt

SetExt is Ext Setter 提供给IOS通知的扩展属性,如角标或者声音等,注意:参数值为json

func (*TaobaoCloudpushNoticeIosAPIRequest) SetSummary

func (r *TaobaoCloudpushNoticeIosAPIRequest) SetSummary(_summary string) error

SetSummary is Summary Setter 通知摘要

func (*TaobaoCloudpushNoticeIosAPIRequest) SetTarget

func (r *TaobaoCloudpushNoticeIosAPIRequest) SetTarget(_target string) error

SetTarget is Target Setter 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部

func (*TaobaoCloudpushNoticeIosAPIRequest) SetTargetValue

func (r *TaobaoCloudpushNoticeIosAPIRequest) SetTargetValue(_targetValue string) error

SetTargetValue is TargetValue Setter 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔

type TaobaoCloudpushNoticeIosAPIResponse

type TaobaoCloudpushNoticeIosAPIResponse struct {
	model.CommonResponse
	TaobaoCloudpushNoticeIosAPIResponseModel
}

TaobaoCloudpushNoticeIosAPIResponse 推送通知给ios设备 API返回值 taobao.cloudpush.notice.ios

推送通知给ios设备

func GetTaobaoCloudpushNoticeIosAPIResponse added in v1.3.4

func GetTaobaoCloudpushNoticeIosAPIResponse() *TaobaoCloudpushNoticeIosAPIResponse

GetTaobaoCloudpushNoticeIosAPIResponse 从 sync.Pool 获取 TaobaoCloudpushNoticeIosAPIResponse

func (*TaobaoCloudpushNoticeIosAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushNoticeIosAPIResponseModel

type TaobaoCloudpushNoticeIosAPIResponseModel struct {
	XMLName xml.Name `xml:"cloudpush_notice_ios_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求产生的错误信息.
	RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"`
	// 请求错误时产生的错误代码.
	RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"`
	// 请求是否成功.
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoCloudpushNoticeIosAPIResponseModel is 推送通知给ios设备 成功返回结果

func (*TaobaoCloudpushNoticeIosAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoCloudpushPushAPIRequest

type TaobaoCloudpushPushAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoCloudpushPushAPIRequest 百川用户使用云推送高级推送接口 API请求 taobao.cloudpush.push

百川用户使用云推送高级推送接口

func GetTaobaoCloudpushPushAPIRequest added in v1.3.4

func GetTaobaoCloudpushPushAPIRequest() *TaobaoCloudpushPushAPIRequest

GetTaobaoCloudpushPushRequest 从 sync.Pool 获取 TaobaoCloudpushPushAPIRequest

func NewTaobaoCloudpushPushRequest

func NewTaobaoCloudpushPushRequest() *TaobaoCloudpushPushAPIRequest

NewTaobaoCloudpushPushRequest 初始化TaobaoCloudpushPushAPIRequest对象

func (TaobaoCloudpushPushAPIRequest) GetAndroidActivity

func (r TaobaoCloudpushPushAPIRequest) GetAndroidActivity() string

GetAndroidActivity AndroidActivity Getter

func (TaobaoCloudpushPushAPIRequest) GetAndroidExtParameters

func (r TaobaoCloudpushPushAPIRequest) GetAndroidExtParameters() string

GetAndroidExtParameters AndroidExtParameters Getter

func (TaobaoCloudpushPushAPIRequest) GetAndroidMusic

func (r TaobaoCloudpushPushAPIRequest) GetAndroidMusic() string

GetAndroidMusic AndroidMusic Getter

func (TaobaoCloudpushPushAPIRequest) GetAndroidOpenType

func (r TaobaoCloudpushPushAPIRequest) GetAndroidOpenType() string

GetAndroidOpenType AndroidOpenType Getter

func (TaobaoCloudpushPushAPIRequest) GetAndroidOpenUrl

func (r TaobaoCloudpushPushAPIRequest) GetAndroidOpenUrl() string

GetAndroidOpenUrl AndroidOpenUrl Getter

func (TaobaoCloudpushPushAPIRequest) GetAntiHarassDuration

func (r TaobaoCloudpushPushAPIRequest) GetAntiHarassDuration() int64

GetAntiHarassDuration AntiHarassDuration Getter

func (TaobaoCloudpushPushAPIRequest) GetAntiHarassStartTime

func (r TaobaoCloudpushPushAPIRequest) GetAntiHarassStartTime() int64

GetAntiHarassStartTime AntiHarassStartTime Getter

func (TaobaoCloudpushPushAPIRequest) GetApiMethodName

func (r TaobaoCloudpushPushAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCloudpushPushAPIRequest) GetApiParams

func (r TaobaoCloudpushPushAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCloudpushPushAPIRequest) GetBatchNumber

func (r TaobaoCloudpushPushAPIRequest) GetBatchNumber() string

GetBatchNumber BatchNumber Getter

func (TaobaoCloudpushPushAPIRequest) GetBody

GetBody Body Getter

func (TaobaoCloudpushPushAPIRequest) GetDeviceType

func (r TaobaoCloudpushPushAPIRequest) GetDeviceType() int64

GetDeviceType DeviceType Getter

func (TaobaoCloudpushPushAPIRequest) GetIosBadge

func (r TaobaoCloudpushPushAPIRequest) GetIosBadge() string

GetIosBadge IosBadge Getter

func (TaobaoCloudpushPushAPIRequest) GetIosExtParameters

func (r TaobaoCloudpushPushAPIRequest) GetIosExtParameters() string

GetIosExtParameters IosExtParameters Getter

func (TaobaoCloudpushPushAPIRequest) GetIosMusic

func (r TaobaoCloudpushPushAPIRequest) GetIosMusic() string

GetIosMusic IosMusic Getter

func (TaobaoCloudpushPushAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoCloudpushPushAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoCloudpushPushAPIRequest) GetRemind

func (r TaobaoCloudpushPushAPIRequest) GetRemind() bool

GetRemind Remind Getter

func (TaobaoCloudpushPushAPIRequest) GetStoreOffline

func (r TaobaoCloudpushPushAPIRequest) GetStoreOffline() bool

GetStoreOffline StoreOffline Getter

func (TaobaoCloudpushPushAPIRequest) GetSummery

func (r TaobaoCloudpushPushAPIRequest) GetSummery() string

GetSummery Summery Getter

func (TaobaoCloudpushPushAPIRequest) GetTarget

func (r TaobaoCloudpushPushAPIRequest) GetTarget() string

GetTarget Target Getter

func (TaobaoCloudpushPushAPIRequest) GetTargetValue

func (r TaobaoCloudpushPushAPIRequest) GetTargetValue() string

GetTargetValue TargetValue Getter

func (TaobaoCloudpushPushAPIRequest) GetTimeout

func (r TaobaoCloudpushPushAPIRequest) GetTimeout() int64

GetTimeout Timeout Getter

func (TaobaoCloudpushPushAPIRequest) GetTitle

GetTitle Title Getter

func (TaobaoCloudpushPushAPIRequest) GetType

GetType Type Getter

func (*TaobaoCloudpushPushAPIRequest) Reset added in v1.3.4

func (r *TaobaoCloudpushPushAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoCloudpushPushAPIRequest) SetAndroidActivity

func (r *TaobaoCloudpushPushAPIRequest) SetAndroidActivity(_androidActivity string) error

SetAndroidActivity is AndroidActivity Setter Android对应的activity,仅仅当androidOpenType=2有效

func (*TaobaoCloudpushPushAPIRequest) SetAndroidExtParameters

func (r *TaobaoCloudpushPushAPIRequest) SetAndroidExtParameters(_androidExtParameters string) error

SetAndroidExtParameters is AndroidExtParameters Setter 自定义的kv结构,开发者扩展用 针对android

func (*TaobaoCloudpushPushAPIRequest) SetAndroidMusic

func (r *TaobaoCloudpushPushAPIRequest) SetAndroidMusic(_androidMusic string) error

SetAndroidMusic is AndroidMusic Setter android通知声音

func (*TaobaoCloudpushPushAPIRequest) SetAndroidOpenType

func (r *TaobaoCloudpushPushAPIRequest) SetAndroidOpenType(_androidOpenType string) error

SetAndroidOpenType is AndroidOpenType Setter 点击通知后动作,1:打开应用 2: 打开应用Activity 3:打开 url

func (*TaobaoCloudpushPushAPIRequest) SetAndroidOpenUrl

func (r *TaobaoCloudpushPushAPIRequest) SetAndroidOpenUrl(_androidOpenUrl string) error

SetAndroidOpenUrl is AndroidOpenUrl Setter Android收到推送后打开对应的url,仅仅当androidOpenType=3有效

func (*TaobaoCloudpushPushAPIRequest) SetAntiHarassDuration

func (r *TaobaoCloudpushPushAPIRequest) SetAntiHarassDuration(_antiHarassDuration int64) error

SetAntiHarassDuration is AntiHarassDuration Setter 防打扰时长,取值范围为1~23

func (*TaobaoCloudpushPushAPIRequest) SetAntiHarassStartTime

func (r *TaobaoCloudpushPushAPIRequest) SetAntiHarassStartTime(_antiHarassStartTime int64) error

SetAntiHarassStartTime is AntiHarassStartTime Setter 防打扰开始时间点,取值范围为0~23

func (*TaobaoCloudpushPushAPIRequest) SetBatchNumber

func (r *TaobaoCloudpushPushAPIRequest) SetBatchNumber(_batchNumber string) error

SetBatchNumber is BatchNumber Setter 批次编号,用于活动效果统计

func (*TaobaoCloudpushPushAPIRequest) SetBody

func (r *TaobaoCloudpushPushAPIRequest) SetBody(_body string) error

SetBody is Body Setter 推送内容

func (*TaobaoCloudpushPushAPIRequest) SetDeviceType

func (r *TaobaoCloudpushPushAPIRequest) SetDeviceType(_deviceType int64) error

SetDeviceType is DeviceType Setter 设备类型,取值范围为:0~3云推送支持多种设备,各种设备类型编号如下: iOS设备:deviceType=0; Andriod设备:deviceType=1;如果存在此字段,则向指定的设备类型推送消息。 默认为全部(3);

func (*TaobaoCloudpushPushAPIRequest) SetIosBadge

func (r *TaobaoCloudpushPushAPIRequest) SetIosBadge(_iosBadge string) error

SetIosBadge is IosBadge Setter iOS应用图标右上角角标

func (*TaobaoCloudpushPushAPIRequest) SetIosExtParameters

func (r *TaobaoCloudpushPushAPIRequest) SetIosExtParameters(_iosExtParameters string) error

SetIosExtParameters is IosExtParameters Setter 自定义的kv结构,开发者扩展用 针对iOS设备

func (*TaobaoCloudpushPushAPIRequest) SetIosMusic

func (r *TaobaoCloudpushPushAPIRequest) SetIosMusic(_iosMusic string) error

SetIosMusic is IosMusic Setter iOS通知声音

func (*TaobaoCloudpushPushAPIRequest) SetRemind

func (r *TaobaoCloudpushPushAPIRequest) SetRemind(_remind bool) error

SetRemind is Remind Setter 当APP不在线时候,是否通过通知提醒. 针对不同设备,处理逻辑不同。 该参数只针对iOS设备生效, (remind=true & 发送消息的话(type=0)). 当你的目标设备不在线(既长连接通道不通, 我们会将这条消息的标题,通过苹果的apns通道再送达一次。发apns是发送生产环境的apns,需要在云推送配置的app的iOS生产证书和密码需要正确,否则也发送不了。 (remind=false & 并且是发送消息的话(type=0)),那么设备不在线,则不会再走苹果apns发送了。

func (*TaobaoCloudpushPushAPIRequest) SetStoreOffline

func (r *TaobaoCloudpushPushAPIRequest) SetStoreOffline(_storeOffline bool) error

SetStoreOffline is StoreOffline Setter 离线消息是否保存,若保存, 在推送时候,用户即使不在线,下一次上线则会收到

func (*TaobaoCloudpushPushAPIRequest) SetSummery

func (r *TaobaoCloudpushPushAPIRequest) SetSummery(_summery string) error

SetSummery is Summery Setter 通知的摘要

func (*TaobaoCloudpushPushAPIRequest) SetTarget

func (r *TaobaoCloudpushPushAPIRequest) SetTarget(_target string) error

SetTarget is Target Setter 推送目标: device:推送给设备; account:推送给指定帐号,tag:推送给自定义标签; all: 推送给全部

func (*TaobaoCloudpushPushAPIRequest) SetTargetValue

func (r *TaobaoCloudpushPushAPIRequest) SetTargetValue(_targetValue string) error

SetTargetValue is TargetValue Setter 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔.(帐号与设备有一次最多100个的限制)

func (*TaobaoCloudpushPushAPIRequest) SetTimeout

func (r *TaobaoCloudpushPushAPIRequest) SetTimeout(_timeout int64) error

SetTimeout is Timeout Setter 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息

func (*TaobaoCloudpushPushAPIRequest) SetTitle

func (r *TaobaoCloudpushPushAPIRequest) SetTitle(_title string) error

SetTitle is Title Setter 推送的标题内容.

func (*TaobaoCloudpushPushAPIRequest) SetType

func (r *TaobaoCloudpushPushAPIRequest) SetType(_type int64) error

SetType is Type Setter 0:表示消息(默认为0),1:表示通知

type TaobaoCloudpushPushAPIResponse

type TaobaoCloudpushPushAPIResponse struct {
	model.CommonResponse
	TaobaoCloudpushPushAPIResponseModel
}

TaobaoCloudpushPushAPIResponse 百川用户使用云推送高级推送接口 API返回值 taobao.cloudpush.push

百川用户使用云推送高级推送接口

func GetTaobaoCloudpushPushAPIResponse added in v1.3.4

func GetTaobaoCloudpushPushAPIResponse() *TaobaoCloudpushPushAPIResponse

GetTaobaoCloudpushPushAPIResponse 从 sync.Pool 获取 TaobaoCloudpushPushAPIResponse

func (*TaobaoCloudpushPushAPIResponse) Reset added in v1.3.4

func (m *TaobaoCloudpushPushAPIResponse) Reset()

Reset 清空结构体

type TaobaoCloudpushPushAPIResponseModel

type TaobaoCloudpushPushAPIResponseModel struct {
	XMLName xml.Name `xml:"cloudpush_push_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求失败的错误信息.
	RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"`
	// 请求失败对应的错误代码.
	RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"`
	// 请求是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoCloudpushPushAPIResponseModel is 百川用户使用云推送高级推送接口 成功返回结果

func (*TaobaoCloudpushPushAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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