wangwang

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

旺旺API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatPeer

type ChatPeer struct {
	// 时间
	Date string `json:"date,omitempty" xml:"date,omitempty"`
	// 账号。长ID
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
}

ChatPeer

type ChatRelationRequest

type ChatRelationRequest struct {
	// 查询账号
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
	// 查询起始时间(精度到天)
	Beg string `json:"beg,omitempty" xml:"beg,omitempty"`
	// 查询结束时间(精度到天)
	End string `json:"end,omitempty" xml:"end,omitempty"`
	// 查询条数
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 翻页查询起始key
	PageBeg string `json:"page_beg,omitempty" xml:"page_beg,omitempty"`
	// 翻页查询结束key
	PageEnd string `json:"page_end,omitempty" xml:"page_end,omitempty"`
}

ChatRelationRequest

type ChatRelationResult

type ChatRelationResult struct {
	// 返回码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 关系列表
	Peers []ChatPeer `json:"peers,omitempty" xml:"peers>chat_peer,omitempty"`
	// 错误原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 起始key。如果要实现上翻页,可以将该值作为下次请求的page_end
	StartKey string `json:"start_key,omitempty" xml:"start_key,omitempty"`
	// 结束key。如果该值为空,则表示请求时间区间内的数据已经拿完。否则,表示区间内还有数据,可以将该值作为下次请求条件的page_beg传入进行迭代请求。
	EndKey string `json:"end_key,omitempty" xml:"end_key,omitempty"`
}

ChatRelationResult

type EvalDetail

type EvalDetail struct {
	// 评分:0-非常满意;1-满意;2-一般;3-不满意;4-非常不满意
	EvalCode int64 `json:"eval_code,omitempty" xml:"eval_code,omitempty"`
	// 接收评价的消费者昵称
	EvalRecer string `json:"eval_recer,omitempty" xml:"eval_recer,omitempty"`
	// 发送评价邀请的商家客服昵称
	EvalSender string `json:"eval_sender,omitempty" xml:"eval_sender,omitempty"`
	// 最后一次评价的时间
	EvalTime string `json:"eval_time,omitempty" xml:"eval_time,omitempty"`
	// 评价的发送时间
	SendTime string `json:"send_time,omitempty" xml:"send_time,omitempty"`
	// 评价来源:0-客服邀评;1-消费者自主评价;2-系统邀评
	Source int64 `json:"source,omitempty" xml:"source,omitempty"`
}

EvalDetail

type MsgList

type MsgList struct {
	// 当direction=1有效,(关键词,数量)列表
	WordLists []WordCountList `json:"word_lists,omitempty" xml:"word_lists>word_count_list,omitempty"`
	// 当direction=1有效,url列表
	UrlLists []UrlList `json:"url_lists,omitempty" xml:"url_lists>url_list,omitempty"`
	// 表示消息方向<br/>0:from_id->to_id<br/>1:to_id->from_id
	Direction int64 `json:"direction,omitempty" xml:"direction,omitempty"`
	// utc时间
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
	// 消息类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 当direction=1有效,消息长度
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 当direction=0有效,完整消息内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

MsgList

type TaobaoQianniuKefuevalGetAPIResponse

type TaobaoQianniuKefuevalGetAPIResponse struct {
	model.CommonResponse
	TaobaoQianniuKefuevalGetResponse
}

客服评价详情接口 API返回值 taobao.qianniu.kefueval.get

获取买家对客服的服务评价

type TaobaoQianniuKefuevalGetRequest

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

客服评价详情接口 API请求 taobao.qianniu.kefueval.get

获取买家对客服的服务评价

func NewTaobaoQianniuKefuevalGetRequest

func NewTaobaoQianniuKefuevalGetRequest() *TaobaoQianniuKefuevalGetRequest

初始化TaobaoQianniuKefuevalGetRequest对象

func (TaobaoQianniuKefuevalGetRequest) GetApiMethodName

func (r TaobaoQianniuKefuevalGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoQianniuKefuevalGetRequest) GetApiParams

func (r TaobaoQianniuKefuevalGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoQianniuKefuevalGetRequest) GetBtime

Btime Getter

func (TaobaoQianniuKefuevalGetRequest) GetEtime

Etime Getter

func (TaobaoQianniuKefuevalGetRequest) GetQueryIds

func (r TaobaoQianniuKefuevalGetRequest) GetQueryIds() string

QueryIds Getter

func (*TaobaoQianniuKefuevalGetRequest) SetBtime

func (r *TaobaoQianniuKefuevalGetRequest) SetBtime(btime string) error

Btime Setter 开始时间,格式yyyyMMddHHmmss

func (*TaobaoQianniuKefuevalGetRequest) SetEtime

func (r *TaobaoQianniuKefuevalGetRequest) SetEtime(etime string) error

Etime Setter 结束时间,格式yyyyMMddHHmmss

func (*TaobaoQianniuKefuevalGetRequest) SetQueryIds

func (r *TaobaoQianniuKefuevalGetRequest) SetQueryIds(queryIds string) error

QueryIds Setter 客服的nick,多个用逗号分隔,不要超过10个,带cntaobao的长nick

type TaobaoQianniuKefuevalGetResponse

type TaobaoQianniuKefuevalGetResponse struct {
	XMLName xml.Name `xml:"qianniu_kefueval_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 评价结果数
	ResultCount int64 `json:"result_count,omitempty" xml:"result_count,omitempty"`
	// 评价明细
	StaffEvalDetails []EvalDetail `json:"staff_eval_details,omitempty" xml:"staff_eval_details>eval_detail,omitempty"`
}

客服评价详情接口 成功返回结果

type TaobaoWangwangAbstractAddwordAPIResponse

type TaobaoWangwangAbstractAddwordAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangAbstractAddwordResponse
}

增加关键词 API返回值 taobao.wangwang.abstract.addword

增加关键词,只支持json返回

type TaobaoWangwangAbstractAddwordRequest

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

增加关键词 API请求 taobao.wangwang.abstract.addword

增加关键词,只支持json返回

func NewTaobaoWangwangAbstractAddwordRequest

func NewTaobaoWangwangAbstractAddwordRequest() *TaobaoWangwangAbstractAddwordRequest

初始化TaobaoWangwangAbstractAddwordRequest对象

func (TaobaoWangwangAbstractAddwordRequest) GetApiMethodName

func (r TaobaoWangwangAbstractAddwordRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoWangwangAbstractAddwordRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangAbstractAddwordRequest) GetCharset

Charset Getter

func (TaobaoWangwangAbstractAddwordRequest) GetWord

Word Getter

func (*TaobaoWangwangAbstractAddwordRequest) SetCharset

func (r *TaobaoWangwangAbstractAddwordRequest) SetCharset(charset string) error

Charset Setter 传入参数的字符集

func (*TaobaoWangwangAbstractAddwordRequest) SetWord

Word Setter 关键词,长度大于0

type TaobaoWangwangAbstractAddwordResponse

type TaobaoWangwangAbstractAddwordResponse struct {
	XMLName xml.Name `xml:"wangwang_abstract_addword_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0或-1,表示错误或正确,错误时有错误信息
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 例如单词长度太长等,当ret_code=-1时才有这项
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

增加关键词 成功返回结果

type TaobaoWangwangAbstractDeletewordAPIResponse

type TaobaoWangwangAbstractDeletewordAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangAbstractDeletewordResponse
}

删除关键词 API返回值 taobao.wangwang.abstract.deleteword

删除关键词,只支持json返回

type TaobaoWangwangAbstractDeletewordRequest

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

删除关键词 API请求 taobao.wangwang.abstract.deleteword

删除关键词,只支持json返回

func NewTaobaoWangwangAbstractDeletewordRequest

func NewTaobaoWangwangAbstractDeletewordRequest() *TaobaoWangwangAbstractDeletewordRequest

初始化TaobaoWangwangAbstractDeletewordRequest对象

func (TaobaoWangwangAbstractDeletewordRequest) GetApiMethodName

func (r TaobaoWangwangAbstractDeletewordRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoWangwangAbstractDeletewordRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangAbstractDeletewordRequest) GetCharset

Charset Getter

func (TaobaoWangwangAbstractDeletewordRequest) GetWord

Word Getter

func (*TaobaoWangwangAbstractDeletewordRequest) SetCharset

func (r *TaobaoWangwangAbstractDeletewordRequest) SetCharset(charset string) error

Charset Setter 传入参数的字符集

func (*TaobaoWangwangAbstractDeletewordRequest) SetWord

Word Setter 关键词,长度大于0

type TaobaoWangwangAbstractDeletewordResponse

type TaobaoWangwangAbstractDeletewordResponse struct {
	XMLName xml.Name `xml:"wangwang_abstract_deleteword_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0或-1,表示错误或正确,错误时有错误信息
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 例如单词长度太长等
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

删除关键词 成功返回结果

type TaobaoWangwangAbstractGetwordlistAPIResponse

type TaobaoWangwangAbstractGetwordlistAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangAbstractGetwordlistResponse
}

获取关键词列表 API返回值 taobao.wangwang.abstract.getwordlist

获取关键词列表,只支持json返回

type TaobaoWangwangAbstractGetwordlistRequest

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

获取关键词列表 API请求 taobao.wangwang.abstract.getwordlist

获取关键词列表,只支持json返回

func NewTaobaoWangwangAbstractGetwordlistRequest

func NewTaobaoWangwangAbstractGetwordlistRequest() *TaobaoWangwangAbstractGetwordlistRequest

初始化TaobaoWangwangAbstractGetwordlistRequest对象

func (TaobaoWangwangAbstractGetwordlistRequest) GetApiMethodName

func (r TaobaoWangwangAbstractGetwordlistRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoWangwangAbstractGetwordlistRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangAbstractGetwordlistRequest) GetCharset

Charset Getter

func (*TaobaoWangwangAbstractGetwordlistRequest) SetCharset

func (r *TaobaoWangwangAbstractGetwordlistRequest) SetCharset(charset string) error

Charset Setter 传入参数的字符集

type TaobaoWangwangAbstractGetwordlistResponse

type TaobaoWangwangAbstractGetwordlistResponse struct {
	XMLName xml.Name `xml:"wangwang_abstract_getwordlist_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0或-1,表示错误或正确,错误时有错误信息
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 例如单词长度太长等,ret_code=-1才有
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 关键词列表,ret_code=0才有
	WordLists []WordList `json:"word_lists,omitempty" xml:"word_lists>word_list,omitempty"`
}

获取关键词列表 成功返回结果

type TaobaoWangwangAbstractInitializeAPIResponse

type TaobaoWangwangAbstractInitializeAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangAbstractInitializeResponse
}

模糊查询服务初始化 API返回值 taobao.wangwang.abstract.initialize

模糊查询服务初始化,只支持json返回

type TaobaoWangwangAbstractInitializeRequest

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

模糊查询服务初始化 API请求 taobao.wangwang.abstract.initialize

模糊查询服务初始化,只支持json返回

func NewTaobaoWangwangAbstractInitializeRequest

func NewTaobaoWangwangAbstractInitializeRequest() *TaobaoWangwangAbstractInitializeRequest

初始化TaobaoWangwangAbstractInitializeRequest对象

func (TaobaoWangwangAbstractInitializeRequest) GetApiMethodName

func (r TaobaoWangwangAbstractInitializeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoWangwangAbstractInitializeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangAbstractInitializeRequest) GetCharset

Charset Getter

func (*TaobaoWangwangAbstractInitializeRequest) SetCharset

func (r *TaobaoWangwangAbstractInitializeRequest) SetCharset(charset string) error

Charset Setter 传入参数的字符集

type TaobaoWangwangAbstractInitializeResponse

type TaobaoWangwangAbstractInitializeResponse struct {
	XMLName xml.Name `xml:"wangwang_abstract_initialize_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0或-1表示成功或失败
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 当ret_code=-1时这个变量才有
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

模糊查询服务初始化 成功返回结果

type TaobaoWangwangAbstractLogqueryAPIResponse

type TaobaoWangwangAbstractLogqueryAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangAbstractLogqueryResponse
}

模糊聊天记录查询 API返回值 taobao.wangwang.abstract.logquery

模糊聊天记录查询

type TaobaoWangwangAbstractLogqueryRequest

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

模糊聊天记录查询 API请求 taobao.wangwang.abstract.logquery

模糊聊天记录查询

func NewTaobaoWangwangAbstractLogqueryRequest

func NewTaobaoWangwangAbstractLogqueryRequest() *TaobaoWangwangAbstractLogqueryRequest

初始化TaobaoWangwangAbstractLogqueryRequest对象

func (TaobaoWangwangAbstractLogqueryRequest) GetApiMethodName

func (r TaobaoWangwangAbstractLogqueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoWangwangAbstractLogqueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangAbstractLogqueryRequest) GetCharset

Charset Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetCount

Count Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetEndDate

EndDate Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetFromId

FromId Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetNextKey

NextKey Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetStartDate

StartDate Getter

func (TaobaoWangwangAbstractLogqueryRequest) GetToId

ToId Getter

func (*TaobaoWangwangAbstractLogqueryRequest) SetCharset

func (r *TaobaoWangwangAbstractLogqueryRequest) SetCharset(charset string) error

Charset Setter 传入参数的字符集

func (*TaobaoWangwangAbstractLogqueryRequest) SetCount

Count Setter 获取记录条数,默认值是1000

func (*TaobaoWangwangAbstractLogqueryRequest) SetEndDate

func (r *TaobaoWangwangAbstractLogqueryRequest) SetEndDate(endDate int64) error

EndDate Setter utc

func (*TaobaoWangwangAbstractLogqueryRequest) SetFromId

func (r *TaobaoWangwangAbstractLogqueryRequest) SetFromId(fromId string) error

FromId Setter 卖家id,有cntaobao前缀

func (*TaobaoWangwangAbstractLogqueryRequest) SetNextKey

func (r *TaobaoWangwangAbstractLogqueryRequest) SetNextKey(nextKey string) error

NextKey Setter 设置了这个值,那么聊天记录就从这个点开始查询

func (*TaobaoWangwangAbstractLogqueryRequest) SetStartDate

func (r *TaobaoWangwangAbstractLogqueryRequest) SetStartDate(startDate int64) error

StartDate Setter utc

func (*TaobaoWangwangAbstractLogqueryRequest) SetToId

ToId Setter 买家id,有cntaobao前缀

type TaobaoWangwangAbstractLogqueryResponse

type TaobaoWangwangAbstractLogqueryResponse struct {
	XMLName xml.Name `xml:"wangwang_abstract_logquery_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0或-1,表示错误或正确,错误时有错误信息.<br/>为-1时就只有error_msg字段是有效的。
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 例如单词长度太长等。<br/>当ret_code不为0时这个值存在。
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 卖家id
	FromId string `json:"from_id,omitempty" xml:"from_id,omitempty"`
	// 买家id
	ToId string `json:"to_id,omitempty" xml:"to_id,omitempty"`
	// 当direction为1时有效,url列表
	UrlLists []UrlList `json:"url_lists,omitempty" xml:"url_lists>url_list,omitempty"`
	// 当direction为1时有效,关键词统计列表
	WordCountLists []WordCountList `json:"word_count_lists,omitempty" xml:"word_count_lists>word_count_list,omitempty"`
	// 0或1<br/>其他返回时,是由于用户名等参数设置有误等引起的远端服务错误
	IsSliced int64 `json:"is_sliced,omitempty" xml:"is_sliced,omitempty"`
	// 当is_sliced为1时有效
	NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"`
	// 消息列表
	MsgLists []MsgList `json:"msg_lists,omitempty" xml:"msg_lists>msg_list,omitempty"`
}

模糊聊天记录查询 成功返回结果

type TaobaoWangwangEserviceChatrelationGetAPIResponse

type TaobaoWangwangEserviceChatrelationGetAPIResponse struct {
	model.CommonResponse
	TaobaoWangwangEserviceChatrelationGetResponse
}

聊天关系获取接口 API返回值 taobao.wangwang.eservice.chatrelation.get

获取指定时间区间内的聊天关系(查询账号,和谁,在哪天说过话)。如: A 和 B 在2016-09-01 和 2016-09-02 都说过话。以A为查询账号,则该接口将返回: 2016-09-01, B 2016-09-02, B

type TaobaoWangwangEserviceChatrelationGetRequest

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

聊天关系获取接口 API请求 taobao.wangwang.eservice.chatrelation.get

获取指定时间区间内的聊天关系(查询账号,和谁,在哪天说过话)。如: A 和 B 在2016-09-01 和 2016-09-02 都说过话。以A为查询账号,则该接口将返回: 2016-09-01, B 2016-09-02, B

func NewTaobaoWangwangEserviceChatrelationGetRequest

func NewTaobaoWangwangEserviceChatrelationGetRequest() *TaobaoWangwangEserviceChatrelationGetRequest

初始化TaobaoWangwangEserviceChatrelationGetRequest对象

func (TaobaoWangwangEserviceChatrelationGetRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoWangwangEserviceChatrelationGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoWangwangEserviceChatrelationGetRequest) GetChatRelationRequest

ChatRelationRequest Getter

func (*TaobaoWangwangEserviceChatrelationGetRequest) SetChatRelationRequest

func (r *TaobaoWangwangEserviceChatrelationGetRequest) SetChatRelationRequest(chatRelationRequest *ChatRelationRequest) error

ChatRelationRequest Setter 请求参数

type TaobaoWangwangEserviceChatrelationGetResponse

type TaobaoWangwangEserviceChatrelationGetResponse struct {
	XMLName xml.Name `xml:"wangwang_eservice_chatrelation_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *ChatRelationResult `json:"result,omitempty" xml:"result,omitempty"`
}

聊天关系获取接口 成功返回结果

type UrlList

type UrlList struct {
	// url列表
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

UrlList

type WordCountList

type WordCountList struct {
	// 关键词
	Word string `json:"word,omitempty" xml:"word,omitempty"`
	// 关键词数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
}

WordCountList

type WordList

type WordList struct {
	// 关键词
	Word string `json:"word,omitempty" xml:"word,omitempty"`
}

WordList

Jump to

Keyboard shortcuts

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