Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) DescribeNewUserAcquisition(request *DescribeNewUserAcquisitionRequest) (response *DescribeNewUserAcquisitionResponse, err error)
- func (c *Client) DescribeNewUserAcquisitionWithContext(ctx context.Context, request *DescribeNewUserAcquisitionRequest) (response *DescribeNewUserAcquisitionResponse, err error)
- func (c *Client) DescribeStockEstimation(request *DescribeStockEstimationRequest) (response *DescribeStockEstimationResponse, err error)
- func (c *Client) DescribeStockEstimationWithContext(ctx context.Context, request *DescribeStockEstimationRequest) (response *DescribeStockEstimationResponse, err error)
- type DescribeNewUserAcquisitionRequest
- type DescribeNewUserAcquisitionRequestParams
- type DescribeNewUserAcquisitionResponse
- type DescribeNewUserAcquisitionResponseParams
- type DescribeStockEstimationRequest
- type DescribeStockEstimationRequestParams
- type DescribeStockEstimationResponse
- type DescribeStockEstimationResponseParams
- type Score
- type UserInfos
Constants ¶
const ( // 内部错误。 INTERNALERROR = "InternalError" // 服务超时。 INTERNALERROR_SERVICETIMEOUT = "InternalError.ServiceTimeout" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" // 超过配额限制。 LIMITEXCEEDED = "LimitExceeded" // 重放攻击。 LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" // 请求的次数超过了频率限制。 REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // 资源不足。 RESOURCEINSUFFICIENT = "ResourceInsufficient" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" )
const APIVersion = "2021-07-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeNewUserAcquisition ¶
func (c *Client) DescribeNewUserAcquisition(request *DescribeNewUserAcquisitionRequest) (response *DescribeNewUserAcquisitionResponse, err error)
DescribeNewUserAcquisition 判断新用户信誉值
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SERVICETIMEOUT = "InternalError.ServiceTimeout" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeNewUserAcquisitionWithContext ¶ added in v1.0.324
func (c *Client) DescribeNewUserAcquisitionWithContext(ctx context.Context, request *DescribeNewUserAcquisitionRequest) (response *DescribeNewUserAcquisitionResponse, err error)
DescribeNewUserAcquisition 判断新用户信誉值
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SERVICETIMEOUT = "InternalError.ServiceTimeout" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeStockEstimation ¶
func (c *Client) DescribeStockEstimation(request *DescribeStockEstimationRequest) (response *DescribeStockEstimationResponse, err error)
DescribeStockEstimation 查询存量判断服务
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SERVICETIMEOUT = "InternalError.ServiceTimeout" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeStockEstimationWithContext ¶ added in v1.0.324
func (c *Client) DescribeStockEstimationWithContext(ctx context.Context, request *DescribeStockEstimationRequest) (response *DescribeStockEstimationResponse, err error)
DescribeStockEstimation 查询存量判断服务
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SERVICETIMEOUT = "InternalError.ServiceTimeout" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
type DescribeNewUserAcquisitionRequest ¶
type DescribeNewUserAcquisitionRequest struct { *tchttp.BaseRequest // 用户信息 ServiceParams *UserInfos `json:"ServiceParams,omitnil,omitempty" name:"ServiceParams"` }
func NewDescribeNewUserAcquisitionRequest ¶
func NewDescribeNewUserAcquisitionRequest() (request *DescribeNewUserAcquisitionRequest)
func (*DescribeNewUserAcquisitionRequest) FromJsonString ¶
func (r *DescribeNewUserAcquisitionRequest) 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 (*DescribeNewUserAcquisitionRequest) ToJsonString ¶
func (r *DescribeNewUserAcquisitionRequest) ToJsonString() string
type DescribeNewUserAcquisitionRequestParams ¶ added in v1.0.426
type DescribeNewUserAcquisitionRequestParams struct { // 用户信息 ServiceParams *UserInfos `json:"ServiceParams,omitnil,omitempty" name:"ServiceParams"` }
Predefined struct for user
type DescribeNewUserAcquisitionResponse ¶
type DescribeNewUserAcquisitionResponse struct { *tchttp.BaseResponse Response *DescribeNewUserAcquisitionResponseParams `json:"Response"` }
func NewDescribeNewUserAcquisitionResponse ¶
func NewDescribeNewUserAcquisitionResponse() (response *DescribeNewUserAcquisitionResponse)
func (*DescribeNewUserAcquisitionResponse) FromJsonString ¶
func (r *DescribeNewUserAcquisitionResponse) 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 (*DescribeNewUserAcquisitionResponse) ToJsonString ¶
func (r *DescribeNewUserAcquisitionResponse) ToJsonString() string
type DescribeNewUserAcquisitionResponseParams ¶ added in v1.0.426
type DescribeNewUserAcquisitionResponseParams struct { // 用户信誉分,1-5从低到高 ServiceRsp *Score `json:"ServiceRsp,omitnil,omitempty" name:"ServiceRsp"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeStockEstimationRequest ¶
type DescribeStockEstimationRequest struct { *tchttp.BaseRequest // 用户信息 ServiceParams *UserInfos `json:"ServiceParams,omitnil,omitempty" name:"ServiceParams"` }
func NewDescribeStockEstimationRequest ¶
func NewDescribeStockEstimationRequest() (request *DescribeStockEstimationRequest)
func (*DescribeStockEstimationRequest) FromJsonString ¶
func (r *DescribeStockEstimationRequest) 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 (*DescribeStockEstimationRequest) ToJsonString ¶
func (r *DescribeStockEstimationRequest) ToJsonString() string
type DescribeStockEstimationRequestParams ¶ added in v1.0.426
type DescribeStockEstimationRequestParams struct { // 用户信息 ServiceParams *UserInfos `json:"ServiceParams,omitnil,omitempty" name:"ServiceParams"` }
Predefined struct for user
type DescribeStockEstimationResponse ¶
type DescribeStockEstimationResponse struct { *tchttp.BaseResponse Response *DescribeStockEstimationResponseParams `json:"Response"` }
func NewDescribeStockEstimationResponse ¶
func NewDescribeStockEstimationResponse() (response *DescribeStockEstimationResponse)
func (*DescribeStockEstimationResponse) FromJsonString ¶
func (r *DescribeStockEstimationResponse) 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 (*DescribeStockEstimationResponse) ToJsonString ¶
func (r *DescribeStockEstimationResponse) ToJsonString() string
type DescribeStockEstimationResponseParams ¶ added in v1.0.426
type DescribeStockEstimationResponseParams struct { // 用户信誉分,1-5从低到高 ServiceRsp *Score `json:"ServiceRsp,omitnil,omitempty" name:"ServiceRsp"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type Score ¶
type Score struct { // 信誉分,1-5从低到高 Star *int64 `json:"Star,omitnil,omitempty" name:"Star"` }
type UserInfos ¶
type UserInfos struct { // 用户的手机号 PhoneNum *string `json:"PhoneNum,omitnil,omitempty" name:"PhoneNum"` // 用户的微信OpenID Openid *string `json:"Openid,omitnil,omitempty" name:"Openid"` // 用户移动设备的客户端IP IP *string `json:"IP,omitnil,omitempty" name:"IP"` // 用户WiFi的BSSID WiFiBssid *string `json:"WiFiBssid,omitnil,omitempty" name:"WiFiBssid"` // 用户Android设备的IMEI IMEI *string `json:"IMEI,omitnil,omitempty" name:"IMEI"` // 用户Android设备的OAID OAID *string `json:"OAID,omitnil,omitempty" name:"OAID"` // 用户iOS设备的IDFA IDFA *string `json:"IDFA,omitnil,omitempty" name:"IDFA"` }