Documentation
¶
Index ¶
- Constants
- type CallDetailItem
- type CallDetails
- type CallStatItem
- type Client
- func (c *Client) GetTaskDetail(request *GetTaskDetailRequest) (response *GetTaskDetailResponse, err error)
- func (c *Client) GetTaskList(request *GetTaskListRequest) (response *GetTaskListResponse, err error)
- func (c *Client) PredictRating(request *PredictRatingRequest) (response *PredictRatingResponse, err error)
- func (c *Client) QueryCallDetails(request *QueryCallDetailsRequest) (response *QueryCallDetailsResponse, err error)
- func (c *Client) QueryCallStat(request *QueryCallStatRequest) (response *QueryCallStatResponse, err error)
- func (c *Client) QueryGeneralStat(request *QueryGeneralStatRequest) (response *QueryGeneralStatResponse, err error)
- func (c *Client) UploadId(request *UploadIdRequest) (response *UploadIdResponse, err error)
- type GeneralStat
- type GetTaskDetailRequest
- type GetTaskDetailResponse
- type GetTaskListRequest
- type GetTaskListResponse
- type LabelDetailData
- type LabelValue
- type ListModel
- type PredictRatingRequest
- type PredictRatingResponse
- type QueryCallDetailsRequest
- type QueryCallDetailsResponse
- type QueryCallStatRequest
- type QueryCallStatResponse
- type QueryGeneralStatRequest
- type QueryGeneralStatResponse
- type RatingData
- type TaskData
- type TaskDetailData
- type TaskListData
- type UploadIdRequest
- type UploadIdResponse
Constants ¶
const APIVersion = "2020-11-27"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallDetailItem ¶
type CallDetails ¶
type CallDetails struct {
// 符合条件的总条数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 调用明细数组
CallDetailSet []*CallDetailItem `json:"CallDetailSet,omitempty" name:"CallDetailSet" list`
}
type CallStatItem ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) GetTaskDetail ¶
func (c *Client) GetTaskDetail(request *GetTaskDetailRequest) (response *GetTaskDetailResponse, err error)
查询画像洞察任务详情
func (*Client) GetTaskList ¶
func (c *Client) GetTaskList(request *GetTaskListRequest) (response *GetTaskListResponse, err error)
查询当前账号AppID下的画像洞察任务列表
func (*Client) PredictRating ¶
func (c *Client) PredictRating(request *PredictRatingRequest) (response *PredictRatingResponse, err error)
根据传入的设备号(IMEI、IDFA、手机号、手机号MD5),返回意向评级结果
func (*Client) QueryCallDetails ¶
func (c *Client) QueryCallDetails(request *QueryCallDetailsRequest) (response *QueryCallDetailsResponse, err error)
查询调用明细
func (*Client) QueryCallStat ¶
func (c *Client) QueryCallStat(request *QueryCallStatRequest) (response *QueryCallStatResponse, err error)
按时间维度获取调用量统计
func (*Client) QueryGeneralStat ¶
func (c *Client) QueryGeneralStat(request *QueryGeneralStatRequest) (response *QueryGeneralStatResponse, err error)
获取日/月/周/总调用量统计数据
func (*Client) UploadId ¶
func (c *Client) UploadId(request *UploadIdRequest) (response *UploadIdResponse, err error)
上传群体画像的ID列表(支持的ID类型:0:imei 7:IDFA 8:MD5(imei)),后台返回生成的画像分析任务ID
type GeneralStat ¶
type GeneralStat struct {
// 今日调用量
TodayAmount *uint64 `json:"TodayAmount,omitempty" name:"TodayAmount"`
// 本周调用量
WeekAmount *uint64 `json:"WeekAmount,omitempty" name:"WeekAmount"`
// 本月调用量
MonthAmount *uint64 `json:"MonthAmount,omitempty" name:"MonthAmount"`
// 总调用量
TotalAmount *uint64 `json:"TotalAmount,omitempty" name:"TotalAmount"`
}
type GetTaskDetailRequest ¶
type GetTaskDetailRequest struct {
*tchttp.BaseRequest
// 任务ID
Id *uint64 `json:"Id,omitempty" name:"Id"`
}
func NewGetTaskDetailRequest ¶
func NewGetTaskDetailRequest() (request *GetTaskDetailRequest)
func (*GetTaskDetailRequest) FromJsonString ¶
func (r *GetTaskDetailRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTaskDetailRequest) ToJsonString ¶
func (r *GetTaskDetailRequest) ToJsonString() string
type GetTaskDetailResponse ¶
type GetTaskDetailResponse struct {
*tchttp.BaseResponse
Response *struct {
// 画像洞察任务TAG详细数据列表
TaskDetailDataList []*TaskDetailData `json:"TaskDetailDataList,omitempty" name:"TaskDetailDataList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetTaskDetailResponse ¶
func NewGetTaskDetailResponse() (response *GetTaskDetailResponse)
func (*GetTaskDetailResponse) FromJsonString ¶
func (r *GetTaskDetailResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTaskDetailResponse) ToJsonString ¶
func (r *GetTaskDetailResponse) ToJsonString() string
type GetTaskListRequest ¶
type GetTaskListRequest struct {
*tchttp.BaseRequest
// 查询分页页码
PageNumber *uint64 `json:"PageNumber,omitempty" name:"PageNumber"`
// 查询分页大小
PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`
// 查询起始时间(13位数字的UNIX时间戳,单位毫秒 )
StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间(13位数字的UNIX时间戳,单位毫秒 )
EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
// 任务名称
TaskName *string `json:"TaskName,omitempty" name:"TaskName"`
// 查询任务状态 0:默认状态 1:任务正在运行 2:任务运行成功 3:任务运行失败
TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"`
}
func NewGetTaskListRequest ¶
func NewGetTaskListRequest() (request *GetTaskListRequest)
func (*GetTaskListRequest) FromJsonString ¶
func (r *GetTaskListRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTaskListRequest) ToJsonString ¶
func (r *GetTaskListRequest) ToJsonString() string
type GetTaskListResponse ¶
type GetTaskListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 任务列表对象
TaskListData *TaskListData `json:"TaskListData,omitempty" name:"TaskListData"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetTaskListResponse ¶
func NewGetTaskListResponse() (response *GetTaskListResponse)
func (*GetTaskListResponse) FromJsonString ¶
func (r *GetTaskListResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetTaskListResponse) ToJsonString ¶
func (r *GetTaskListResponse) ToJsonString() string
type LabelDetailData ¶
type LabelDetailData struct {
// 标签数据对象
Value *LabelValue `json:"Value,omitempty" name:"Value"`
// 标签表述,如"汽车资讯"、"游戏#手游"等
Label *string `json:"Label,omitempty" name:"Label"`
}
type LabelValue ¶
type ListModel ¶
type ListModel struct {
// 任务ID
ID *uint64 `json:"ID,omitempty" name:"ID"`
// 任务名称
TaskName *string `json:"TaskName,omitempty" name:"TaskName"`
// 任务起始时间(13位数字的UNIX 时间戳,单位毫秒 )
StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
// 任务状态 0:默认状态 1:任务正在运行 2:任务运行成功 3:任务运行失败
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 画像覆盖人数
Available *uint64 `json:"Available,omitempty" name:"Available"`
// 任务失败描述信息
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
}
type PredictRatingRequest ¶
type PredictRatingRequest struct {
*tchttp.BaseRequest
// ID标志的类型,0:IMEI 7:IDFA 8:MD5(imei) 100: 手机号明文 101: 手机号md5加密
Type *int64 `json:"Type,omitempty" name:"Type"`
// 请求唯一标志ID
Id *string `json:"Id,omitempty" name:"Id"`
}
func NewPredictRatingRequest ¶
func NewPredictRatingRequest() (request *PredictRatingRequest)
func (*PredictRatingRequest) FromJsonString ¶
func (r *PredictRatingRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PredictRatingRequest) ToJsonString ¶
func (r *PredictRatingRequest) ToJsonString() string
type PredictRatingResponse ¶
type PredictRatingResponse struct {
*tchttp.BaseResponse
Response *struct {
// 意向评级
RatingData *RatingData `json:"RatingData,omitempty" name:"RatingData"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPredictRatingResponse ¶
func NewPredictRatingResponse() (response *PredictRatingResponse)
func (*PredictRatingResponse) FromJsonString ¶
func (r *PredictRatingResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PredictRatingResponse) ToJsonString ¶
func (r *PredictRatingResponse) ToJsonString() string
type QueryCallDetailsRequest ¶
type QueryCallDetailsRequest struct {
*tchttp.BaseRequest
// 请求类型 1:人群特征洞察统计 2:购车意向预测统计
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 开始时间戳(毫秒)
StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间戳(毫秒)
EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
// 页数
PageNumber *uint64 `json:"PageNumber,omitempty" name:"PageNumber"`
// 每页个数
PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`
}
func NewQueryCallDetailsRequest ¶
func NewQueryCallDetailsRequest() (request *QueryCallDetailsRequest)
func (*QueryCallDetailsRequest) FromJsonString ¶
func (r *QueryCallDetailsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallDetailsRequest) ToJsonString ¶
func (r *QueryCallDetailsRequest) ToJsonString() string
type QueryCallDetailsResponse ¶
type QueryCallDetailsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 调用明细
CallDetails *CallDetails `json:"CallDetails,omitempty" name:"CallDetails"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewQueryCallDetailsResponse ¶
func NewQueryCallDetailsResponse() (response *QueryCallDetailsResponse)
func (*QueryCallDetailsResponse) FromJsonString ¶
func (r *QueryCallDetailsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallDetailsResponse) ToJsonString ¶
func (r *QueryCallDetailsResponse) ToJsonString() string
type QueryCallStatRequest ¶
type QueryCallStatRequest struct {
*tchttp.BaseRequest
// 请求类型 1:人群特征洞察统计 2:购车意向预测统计
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 开始时间戳(毫秒)
StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间戳(毫秒)
EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
}
func NewQueryCallStatRequest ¶
func NewQueryCallStatRequest() (request *QueryCallStatRequest)
func (*QueryCallStatRequest) FromJsonString ¶
func (r *QueryCallStatRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallStatRequest) ToJsonString ¶
func (r *QueryCallStatRequest) ToJsonString() string
type QueryCallStatResponse ¶
type QueryCallStatResponse struct {
*tchttp.BaseResponse
Response *struct {
// 调用量数组
CallSet []*CallStatItem `json:"CallSet,omitempty" name:"CallSet" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewQueryCallStatResponse ¶
func NewQueryCallStatResponse() (response *QueryCallStatResponse)
func (*QueryCallStatResponse) FromJsonString ¶
func (r *QueryCallStatResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallStatResponse) ToJsonString ¶
func (r *QueryCallStatResponse) ToJsonString() string
type QueryGeneralStatRequest ¶
type QueryGeneralStatRequest struct {
*tchttp.BaseRequest
// 请求类型:1,人群特征洞察统计 2购车意向预测统计
Type *uint64 `json:"Type,omitempty" name:"Type"`
}
func NewQueryGeneralStatRequest ¶
func NewQueryGeneralStatRequest() (request *QueryGeneralStatRequest)
func (*QueryGeneralStatRequest) FromJsonString ¶
func (r *QueryGeneralStatRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryGeneralStatRequest) ToJsonString ¶
func (r *QueryGeneralStatRequest) ToJsonString() string
type QueryGeneralStatResponse ¶
type QueryGeneralStatResponse struct {
*tchttp.BaseResponse
Response *struct {
// 调用量信息
GeneralStat *GeneralStat `json:"GeneralStat,omitempty" name:"GeneralStat"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewQueryGeneralStatResponse ¶
func NewQueryGeneralStatResponse() (response *QueryGeneralStatResponse)
func (*QueryGeneralStatResponse) FromJsonString ¶
func (r *QueryGeneralStatResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryGeneralStatResponse) ToJsonString ¶
func (r *QueryGeneralStatResponse) ToJsonString() string
type RatingData ¶
type RatingData struct {
// 线索评级(取值:0、1、2、3分别代表无、低、中、高意愿)
Rank *int64 `json:"Rank,omitempty" name:"Rank"`
}
type TaskDetailData ¶
type TaskDetailData struct {
// 画像TAG ID
TagId *uint64 `json:"TagId,omitempty" name:"TagId"`
// 画像TAG描述(如“省份分布”)
TagDesc *string `json:"TagDesc,omitempty" name:"TagDesc"`
// 画像Label对象列表(一个TAG对于N个Label,例如“省份分布”TAG对应“广东省”、“浙江省”等多个Label)
LabelDetailDataList []*LabelDetailData `json:"LabelDetailDataList,omitempty" name:"LabelDetailDataList" list`
}
type TaskListData ¶
type TaskListData struct {
// 查询分页页码
PageNumber *uint64 `json:"PageNumber,omitempty" name:"PageNumber"`
// 查询分页大小
PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`
// 任务列表总记录数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 任务列表
TaskList []*ListModel `json:"TaskList,omitempty" name:"TaskList" list`
}
type UploadIdRequest ¶
type UploadIdRequest struct {
*tchttp.BaseRequest
// id标志的类型: 0:imei 7:IDFA 8:MD5(imei)
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 任务名称
TaskName *string `json:"TaskName,omitempty" name:"TaskName"`
// ID列表(ID间使用换行符分割、然后使用Base64编码)
IdListBase64 *string `json:"IdListBase64,omitempty" name:"IdListBase64"`
}
func NewUploadIdRequest ¶
func NewUploadIdRequest() (request *UploadIdRequest)
func (*UploadIdRequest) FromJsonString ¶
func (r *UploadIdRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UploadIdRequest) ToJsonString ¶
func (r *UploadIdRequest) ToJsonString() string
type UploadIdResponse ¶
type UploadIdResponse struct {
*tchttp.BaseResponse
Response *struct {
// 画像洞察任务ID等信息
TaskData *TaskData `json:"TaskData,omitempty" name:"TaskData"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUploadIdResponse ¶
func NewUploadIdResponse() (response *UploadIdResponse)
func (*UploadIdResponse) FromJsonString ¶
func (r *UploadIdResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UploadIdResponse) ToJsonString ¶
func (r *UploadIdResponse) ToJsonString() string