v20190926

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 请求超时,请重试。
	INTERNALERROR_ERRTIMEOUT = "InternalError.ErrTimeOut"

	// 账号未开通服务。
	INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"

	// 无效的公网ip地址。
	INVALIDPARAMETERVALUE_INVALIDIP = "InvalidParameterValue.InvalidIp"

	// 手机号码无效。
	INVALIDPARAMETERVALUE_INVALIDMOBILENUMBER = "InvalidParameterValue.InvalidMobileNumber"
)
View Source
const APIVersion = "2019-09-26"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) MarketingValueJudgement

func (c *Client) MarketingValueJudgement(request *MarketingValueJudgementRequest) (response *MarketingValueJudgementResponse, err error)

MarketingValueJudgement 欢迎使用营销价值判断(Marketing Value Judgement,简称 MVJ)。

营销价值判断(MVJ)是针对零售场景的风控服务,通过识别高价值顾客,以帮助零售商保障营销资金

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_ERRTIMEOUT = "InternalError.ErrTimeOut"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_INVALIDIP = "InvalidParameterValue.InvalidIp"
INVALIDPARAMETERVALUE_INVALIDMOBILENUMBER = "InvalidParameterValue.InvalidMobileNumber"

func (*Client) MarketingValueJudgementWithContext added in v1.0.324

func (c *Client) MarketingValueJudgementWithContext(ctx context.Context, request *MarketingValueJudgementRequest) (response *MarketingValueJudgementResponse, err error)

MarketingValueJudgement 欢迎使用营销价值判断(Marketing Value Judgement,简称 MVJ)。

营销价值判断(MVJ)是针对零售场景的风控服务,通过识别高价值顾客,以帮助零售商保障营销资金

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_ERRTIMEOUT = "InternalError.ErrTimeOut"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_INVALIDIP = "InvalidParameterValue.InvalidIp"
INVALIDPARAMETERVALUE_INVALIDMOBILENUMBER = "InvalidParameterValue.InvalidMobileNumber"

type Data

type Data struct {
	// 操作时间戳,单位秒
	PostTime *uint64 `json:"PostTime,omitnil,omitempty" name:"PostTime"`

	// 用户ID
	// accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
	Uid *string `json:"Uid,omitnil,omitempty" name:"Uid"`

	// 操作来源的外网IP
	UserIp *string `json:"UserIp,omitnil,omitempty" name:"UserIp"`

	// 0~100:营销价值评分,分值越高,价值越大
	// [0,50]低价值
	// [50,70]价值一般
	// [70,100]高价值
	ValueScore *uint64 `json:"ValueScore,omitnil,omitempty" name:"ValueScore"`
}

type MarketingValueJudgementRequest

type MarketingValueJudgementRequest struct {
	*tchttp.BaseRequest

	// 手机账号类型填写4
	AccountType *uint64 `json:"AccountType,omitnil,omitempty" name:"AccountType"`

	// 填写手机号码,如15317537488
	Uid *string `json:"Uid,omitnil,omitempty" name:"Uid"`

	// 用户请求时的客户端外网IP
	UserIp *string `json:"UserIp,omitnil,omitempty" name:"UserIp"`

	// 用户操作时间戳,单位秒(格林威治时间精确到秒,如1501590972)
	PostTime *uint64 `json:"PostTime,omitnil,omitempty" name:"PostTime"`

	// 用户设备号imei/idfa(建议填写)
	Imei *string `json:"Imei,omitnil,omitempty" name:"Imei"`

	// 活动链接(建议填写)
	Referer *string `json:"Referer,omitnil,omitempty" name:"Referer"`
}

func NewMarketingValueJudgementRequest

func NewMarketingValueJudgementRequest() (request *MarketingValueJudgementRequest)

func (*MarketingValueJudgementRequest) FromJsonString

func (r *MarketingValueJudgementRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*MarketingValueJudgementRequest) ToJsonString

func (r *MarketingValueJudgementRequest) ToJsonString() string

type MarketingValueJudgementRequestParams added in v1.0.426

type MarketingValueJudgementRequestParams struct {
	// 手机账号类型填写4
	AccountType *uint64 `json:"AccountType,omitnil,omitempty" name:"AccountType"`

	// 填写手机号码,如15317537488
	Uid *string `json:"Uid,omitnil,omitempty" name:"Uid"`

	// 用户请求时的客户端外网IP
	UserIp *string `json:"UserIp,omitnil,omitempty" name:"UserIp"`

	// 用户操作时间戳,单位秒(格林威治时间精确到秒,如1501590972)
	PostTime *uint64 `json:"PostTime,omitnil,omitempty" name:"PostTime"`

	// 用户设备号imei/idfa(建议填写)
	Imei *string `json:"Imei,omitnil,omitempty" name:"Imei"`

	// 活动链接(建议填写)
	Referer *string `json:"Referer,omitnil,omitempty" name:"Referer"`
}

Predefined struct for user

type MarketingValueJudgementResponse

type MarketingValueJudgementResponse struct {
	*tchttp.BaseResponse
	Response *MarketingValueJudgementResponseParams `json:"Response"`
}

func NewMarketingValueJudgementResponse

func NewMarketingValueJudgementResponse() (response *MarketingValueJudgementResponse)

func (*MarketingValueJudgementResponse) FromJsonString

func (r *MarketingValueJudgementResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*MarketingValueJudgementResponse) ToJsonString

func (r *MarketingValueJudgementResponse) ToJsonString() string

type MarketingValueJudgementResponseParams added in v1.0.426

type MarketingValueJudgementResponseParams struct {
	// 返回数据
	Data *Data `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

Jump to

Keyboard shortcuts

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