Documentation ¶
Overview ¶
API无需订购ecrm工具也可调用。开放淘宝卖家的会员数据,并且提供对会员的相关管理,设置操作。 auto sdk from taobao ApiMetadata.xml version 20140725 auther: dz7changkong@qq.com
Index ¶
- Constants
- type BasicMember
- type CrmGradeGetRequest
- type CrmGradeGetResponse
- type CrmGradeGetResponseResult
- type CrmGradeSetRequest
- func (r *CrmGradeSetRequest) GetResponse(accessToken string) (*CrmGradeSetResponse, []byte, error)
- func (r *CrmGradeSetRequest) SetAmount(value string)
- func (r *CrmGradeSetRequest) SetCount(value string)
- func (r *CrmGradeSetRequest) SetDiscount(value string)
- func (r *CrmGradeSetRequest) SetGrade(value string)
- func (r *CrmGradeSetRequest) SetHierarchy(value string)
- type CrmGradeSetResponse
- type CrmGradeSetResponseResult
- type CrmGrademktMemberAddRequest
- func (r *CrmGrademktMemberAddRequest) GetResponse(accessToken string) (*CrmGrademktMemberAddResponse, []byte, error)
- func (r *CrmGrademktMemberAddRequest) SetBuyerNick(value string)
- func (r *CrmGrademktMemberAddRequest) SetFeather(value string)
- func (r *CrmGrademktMemberAddRequest) SetParameter(value string)
- type CrmGrademktMemberAddResponse
- type CrmGrademktMemberAddResponseResult
- type CrmGrademktMemberDetailCreateRequest
- type CrmGrademktMemberDetailCreateResponse
- type CrmGrademktMemberDetailCreateResponseResult
- type CrmGrademktMemberDetailDeleteRequest
- type CrmGrademktMemberDetailDeleteResponse
- type CrmGrademktMemberDetailDeleteResponseResult
- type CrmGrademktMemberDetailQueryRequest
- type CrmGrademktMemberDetailQueryResponse
- type CrmGrademktMemberDetailQueryResponseResult
- type CrmGrademktMemberGradeactivityInitRequest
- func (r *CrmGrademktMemberGradeactivityInitRequest) GetResponse(accessToken string) (*CrmGrademktMemberGradeactivityInitResponse, []byte, error)
- func (r *CrmGrademktMemberGradeactivityInitRequest) SetFeather(value string)
- func (r *CrmGrademktMemberGradeactivityInitRequest) SetParameter(value string)
- type CrmGrademktMemberGradeactivityInitResponse
- type CrmGrademktMemberGradeactivityInitResponseResult
- type CrmGrademktMemberQueryRequest
- func (r *CrmGrademktMemberQueryRequest) GetResponse(accessToken string) (*CrmGrademktMemberQueryResponse, []byte, error)
- func (r *CrmGrademktMemberQueryRequest) SetBuyerNick(value string)
- func (r *CrmGrademktMemberQueryRequest) SetFeather(value string)
- func (r *CrmGrademktMemberQueryRequest) SetParameter(value string)
- type CrmGrademktMemberQueryResponse
- type CrmGrademktMemberQueryResponseResult
- type CrmGroupAddRequest
- type CrmGroupAddResponse
- type CrmGroupAddResponseResult
- type CrmGroupAppendRequest
- type CrmGroupAppendResponse
- type CrmGroupAppendResponseResult
- type CrmGroupDeleteRequest
- type CrmGroupDeleteResponse
- type CrmGroupDeleteResponseResult
- type CrmGroupMoveRequest
- type CrmGroupMoveResponse
- type CrmGroupMoveResponseResult
- type CrmGroupUpdateRequest
- type CrmGroupUpdateResponse
- type CrmGroupUpdateResponseResult
- type CrmGroupsGetRequest
- type CrmGroupsGetResponse
- type CrmGroupsGetResponseResult
- type CrmGrouptaskCheckRequest
- type CrmGrouptaskCheckResponse
- type CrmGrouptaskCheckResponseResult
- type CrmMember
- type CrmMemberGroupGetRequest
- type CrmMemberGroupGetResponse
- type CrmMemberGroupGetResponseResult
- type CrmMembergradeSetRequest
- type CrmMembergradeSetResponse
- type CrmMembergradeSetResponseResult
- type CrmMemberinfoUpdateRequest
- func (r *CrmMemberinfoUpdateRequest) GetResponse(accessToken string) (*CrmMemberinfoUpdateResponse, []byte, error)
- func (r *CrmMemberinfoUpdateRequest) SetBuyerNick(value string)
- func (r *CrmMemberinfoUpdateRequest) SetCity(value string)
- func (r *CrmMemberinfoUpdateRequest) SetCloseTradeAmount(value string)
- func (r *CrmMemberinfoUpdateRequest) SetCloseTradeCount(value string)
- func (r *CrmMemberinfoUpdateRequest) SetGrade(value string)
- func (r *CrmMemberinfoUpdateRequest) SetGroupIds(value string)
- func (r *CrmMemberinfoUpdateRequest) SetItemNum(value string)
- func (r *CrmMemberinfoUpdateRequest) SetProvince(value string)
- func (r *CrmMemberinfoUpdateRequest) SetStatus(value string)
- func (r *CrmMemberinfoUpdateRequest) SetTradeAmount(value string)
- func (r *CrmMemberinfoUpdateRequest) SetTradeCount(value string)
- type CrmMemberinfoUpdateResponse
- type CrmMemberinfoUpdateResponseResult
- type CrmMembersGetRequest
- func (r *CrmMembersGetRequest) GetResponse(accessToken string) (*CrmMembersGetResponse, []byte, error)
- func (r *CrmMembersGetRequest) SetBuyerNick(value string)
- func (r *CrmMembersGetRequest) SetCurrentPage(value string)
- func (r *CrmMembersGetRequest) SetGrade(value string)
- func (r *CrmMembersGetRequest) SetMaxLastTradeTime(value string)
- func (r *CrmMembersGetRequest) SetMaxTradeAmount(value string)
- func (r *CrmMembersGetRequest) SetMaxTradeCount(value string)
- func (r *CrmMembersGetRequest) SetMinLastTradeTime(value string)
- func (r *CrmMembersGetRequest) SetMinTradeAmount(value string)
- func (r *CrmMembersGetRequest) SetMinTradeCount(value string)
- func (r *CrmMembersGetRequest) SetPageSize(value string)
- type CrmMembersGetResponse
- type CrmMembersGetResponseResult
- type CrmMembersGroupBatchaddRequest
- type CrmMembersGroupBatchaddResponse
- type CrmMembersGroupBatchaddResponseResult
- type CrmMembersGroupsBatchdeleteRequest
- type CrmMembersGroupsBatchdeleteResponse
- type CrmMembersGroupsBatchdeleteResponseResult
- type CrmMembersIncrementGetRequest
- func (r *CrmMembersIncrementGetRequest) GetResponse(accessToken string) (*CrmMembersIncrementGetResponse, []byte, error)
- func (r *CrmMembersIncrementGetRequest) SetCurrentPage(value string)
- func (r *CrmMembersIncrementGetRequest) SetEndModify(value string)
- func (r *CrmMembersIncrementGetRequest) SetGrade(value string)
- func (r *CrmMembersIncrementGetRequest) SetPageSize(value string)
- func (r *CrmMembersIncrementGetRequest) SetStartModify(value string)
- type CrmMembersIncrementGetResponse
- type CrmMembersIncrementGetResponseResult
- type CrmMembersSearchRequest
- func (r *CrmMembersSearchRequest) GetResponse(accessToken string) (*CrmMembersSearchResponse, []byte, error)
- func (r *CrmMembersSearchRequest) SetBuyerNick(value string)
- func (r *CrmMembersSearchRequest) SetCity(value string)
- func (r *CrmMembersSearchRequest) SetCurrentPage(value string)
- func (r *CrmMembersSearchRequest) SetGrade(value string)
- func (r *CrmMembersSearchRequest) SetGroupId(value string)
- func (r *CrmMembersSearchRequest) SetMaxAvgPrice(value string)
- func (r *CrmMembersSearchRequest) SetMaxCloseTradeNum(value string)
- func (r *CrmMembersSearchRequest) SetMaxItemNum(value string)
- func (r *CrmMembersSearchRequest) SetMaxLastTradeTime(value string)
- func (r *CrmMembersSearchRequest) SetMaxTradeAmount(value string)
- func (r *CrmMembersSearchRequest) SetMaxTradeCount(value string)
- func (r *CrmMembersSearchRequest) SetMinAvgPrice(value string)
- func (r *CrmMembersSearchRequest) SetMinCloseTradeNum(value string)
- func (r *CrmMembersSearchRequest) SetMinItemNum(value string)
- func (r *CrmMembersSearchRequest) SetMinLastTradeTime(value string)
- func (r *CrmMembersSearchRequest) SetMinTradeAmount(value string)
- func (r *CrmMembersSearchRequest) SetMinTradeCount(value string)
- func (r *CrmMembersSearchRequest) SetPageSize(value string)
- func (r *CrmMembersSearchRequest) SetProvince(value string)
- func (r *CrmMembersSearchRequest) SetRelationSource(value string)
- type CrmMembersSearchResponse
- type CrmMembersSearchResponseResult
- type CrmQnLabelsSellerGetRequest
- type CrmQnLabelsSellerGetResponse
- type CrmQnLabelsSellerGetResponseResult
- type CrmShopvipCancelRequest
- type CrmShopvipCancelResponse
- type CrmShopvipCancelResponseResult
- type GradeEquity
- type GradePromotion
- type Group
- type TmallCrmEquityGetRequest
- type TmallCrmEquityGetResponse
- type TmallCrmEquityGetResponseResult
- type TmallCrmEquitySetRequest
- func (r *TmallCrmEquitySetRequest) GetResponse(accessToken string) (*TmallCrmEquitySetResponse, []byte, error)
- func (r *TmallCrmEquitySetRequest) SetExcludeArea(value string)
- func (r *TmallCrmEquitySetRequest) SetGrade(value string)
- func (r *TmallCrmEquitySetRequest) SetPoint(value string)
- func (r *TmallCrmEquitySetRequest) SetPostage(value string)
- type TmallCrmEquitySetResponse
- type TmallCrmEquitySetResponseResult
Constants ¶
const VersionNo = "20140725"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicMember ¶
type BasicMember struct { BizOrderId int `json:"biz_order_id"` BuyerId int `json:"buyer_id"` BuyerNick string `json:"buyer_nick"` CloseTradeAmount float64 `json:"close_trade_amount,string"` CloseTradeCount int `json:"close_trade_count"` Grade int `json:"grade"` GroupIds string `json:"group_ids"` ItemNum int `json:"item_num"` LastTradeTime string `json:"last_trade_time"` RelationSource int `json:"relation_source"` Status string `json:"status"` TradeAmount float64 `json:"trade_amount,string"` TradeCount int `json:"trade_count"` }
表示会员关系的基本信息字段,用于会员列表的基本查询
type CrmGradeGetRequest ¶
type CrmGradeGetRequest struct {
open_taobao.TaobaoMethodRequest
}
卖家查询等级规则,包括店铺客户、普通会员、高级会员、VIP会员、至尊VIP会员四个等级的信息
func (*CrmGradeGetRequest) GetResponse ¶
func (r *CrmGradeGetRequest) GetResponse(accessToken string) (*CrmGradeGetResponse, []byte, error)
type CrmGradeGetResponse ¶
type CrmGradeGetResponse struct { GradePromotions struct { GradePromotion []*GradePromotion `json:"grade_promotion"` } `json:"grade_promotions"` }
type CrmGradeGetResponseResult ¶
type CrmGradeGetResponseResult struct {
Response *CrmGradeGetResponse `json:"crm_grade_get_response"`
}
type CrmGradeSetRequest ¶
type CrmGradeSetRequest struct {
open_taobao.TaobaoMethodRequest
}
设置等级信息,可以设置层级等级,也可以单独设置一个等级。出于安全原因,折扣现最低只能设置到700即7折。
func (*CrmGradeSetRequest) GetResponse ¶
func (r *CrmGradeSetRequest) GetResponse(accessToken string) (*CrmGradeSetResponse, []byte, error)
func (*CrmGradeSetRequest) SetAmount ¶
func (r *CrmGradeSetRequest) SetAmount(value string)
只对设置的层级等级有效,必须要在amount和count参数中选择一个<br>
amount参数的填写规范:升级到下一个级别的需要的交易额,单位为分,必须全部填写.例如10000,20000,30000,其中10000表示非会员升级到普通的所需的交易额,20000表示普通升级到高级所需的交易额,层级等级中最高等级的下一个等级默认为0。会员等级越高,所需交易额必须越高。<br /> 支持最小值为:0
func (*CrmGradeSetRequest) SetCount ¶
func (r *CrmGradeSetRequest) SetCount(value string)
只对设置的层级等级有效,必须要在amount和count参数中选择一个<br>
count参数的填写规范: 升级到下一个级别的需要的交易量,必须全部填写. 以逗号分隔,例如100,200,300,其中100表示非会员升级到普通会员交易量。层级等级中最高等级的下一个等级的交易量默认为0。会员等级越高,交易量必须越高。<br /> 支持最小值为:0
func (*CrmGradeSetRequest) SetDiscount ¶
func (r *CrmGradeSetRequest) SetDiscount(value string)
会员级别折扣率。会员等级越高,折扣必须越低。
950即9.5折,888折即8.88折。出于安全原因,折扣现最低只能设置到700即7折。<br /> 支持最大值为:1000<br /> 支持最小值为:700
func (*CrmGradeSetRequest) SetGrade ¶
func (r *CrmGradeSetRequest) SetGrade(value string)
会员等级,用逗号分隔。买家会员级别0:店铺客户 1:普通会员 2 :高级会员 3:VIP会员 4:至尊VIP<br /> 支持最大值为:4<br /> 支持最小值为:1
func (*CrmGradeSetRequest) SetHierarchy ¶
func (r *CrmGradeSetRequest) SetHierarchy(value string)
是否设置达到某一会员等级的交易量和交易额,必填。4个级别都需要设置,如入参为true,true,true,false时,表示设置达到高级会员、VIP会员的交易量或者交易额,不设置达到至尊会员的交易量和交易额
type CrmGradeSetResponse ¶
type CrmGradeSetResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmGradeSetResponseResult ¶
type CrmGradeSetResponseResult struct {
Response *CrmGradeSetResponse `json:"crm_grade_set_response"`
}
type CrmGrademktMemberAddRequest ¶
type CrmGrademktMemberAddRequest struct {
open_taobao.TaobaoMethodRequest
}
商家通过该接口吸纳线上店铺会员。
func (*CrmGrademktMemberAddRequest) GetResponse ¶
func (r *CrmGrademktMemberAddRequest) GetResponse(accessToken string) (*CrmGrademktMemberAddResponse, []byte, error)
func (*CrmGrademktMemberAddRequest) SetBuyerNick ¶
func (r *CrmGrademktMemberAddRequest) SetBuyerNick(value string)
会员nick
func (*CrmGrademktMemberAddRequest) SetFeather ¶
func (r *CrmGrademktMemberAddRequest) SetFeather(value string)
系统属性,json格式
func (*CrmGrademktMemberAddRequest) SetParameter ¶
func (r *CrmGrademktMemberAddRequest) SetParameter(value string)
会员属性-json format
生成方法见http://open.taobao.com/doc/detail.htm?id=101281
type CrmGrademktMemberAddResponse ¶
type CrmGrademktMemberAddResponse struct {
Model bool `json:"model"`
}
type CrmGrademktMemberAddResponseResult ¶
type CrmGrademktMemberAddResponseResult struct {
Response *CrmGrademktMemberAddResponse `json:"crm_grademkt_member_add_response"`
}
type CrmGrademktMemberDetailCreateRequest ¶
type CrmGrademktMemberDetailCreateRequest struct {
open_taobao.TaobaoMethodRequest
}
创建商品等级营销明细
func (*CrmGrademktMemberDetailCreateRequest) GetResponse ¶
func (r *CrmGrademktMemberDetailCreateRequest) GetResponse(accessToken string) (*CrmGrademktMemberDetailCreateResponse, []byte, error)
func (*CrmGrademktMemberDetailCreateRequest) SetFeather ¶
func (r *CrmGrademktMemberDetailCreateRequest) SetFeather(value string)
扩展字段
func (*CrmGrademktMemberDetailCreateRequest) SetParameter ¶
func (r *CrmGrademktMemberDetailCreateRequest) SetParameter(value string)
创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281
type CrmGrademktMemberDetailCreateResponse ¶
type CrmGrademktMemberDetailCreateResponse struct {
Module bool `json:"module"`
}
type CrmGrademktMemberDetailCreateResponseResult ¶
type CrmGrademktMemberDetailCreateResponseResult struct {
Response *CrmGrademktMemberDetailCreateResponse `json:"crm_grademkt_member_detail_create_response"`
}
type CrmGrademktMemberDetailDeleteRequest ¶
type CrmGrademktMemberDetailDeleteRequest struct {
open_taobao.TaobaoMethodRequest
}
删除商品等级营销明细
func (*CrmGrademktMemberDetailDeleteRequest) GetResponse ¶
func (r *CrmGrademktMemberDetailDeleteRequest) GetResponse(accessToken string) (*CrmGrademktMemberDetailDeleteResponse, []byte, error)
func (*CrmGrademktMemberDetailDeleteRequest) SetFeather ¶
func (r *CrmGrademktMemberDetailDeleteRequest) SetFeather(value string)
扩展字段
func (*CrmGrademktMemberDetailDeleteRequest) SetParameter ¶
func (r *CrmGrademktMemberDetailDeleteRequest) SetParameter(value string)
创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281
type CrmGrademktMemberDetailDeleteResponse ¶
type CrmGrademktMemberDetailDeleteResponse struct {
Module bool `json:"module"`
}
type CrmGrademktMemberDetailDeleteResponseResult ¶
type CrmGrademktMemberDetailDeleteResponseResult struct {
Response *CrmGrademktMemberDetailDeleteResponse `json:"crm_grademkt_member_detail_delete_response"`
}
type CrmGrademktMemberDetailQueryRequest ¶
type CrmGrademktMemberDetailQueryRequest struct {
open_taobao.TaobaoMethodRequest
}
商家通过该接口查询等级营销活动
func (*CrmGrademktMemberDetailQueryRequest) GetResponse ¶
func (r *CrmGrademktMemberDetailQueryRequest) GetResponse(accessToken string) (*CrmGrademktMemberDetailQueryResponse, []byte, error)
func (*CrmGrademktMemberDetailQueryRequest) SetFeather ¶
func (r *CrmGrademktMemberDetailQueryRequest) SetFeather(value string)
扩展字段
func (*CrmGrademktMemberDetailQueryRequest) SetParameter ¶
func (r *CrmGrademktMemberDetailQueryRequest) SetParameter(value string)
创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281
type CrmGrademktMemberDetailQueryResponse ¶
type CrmGrademktMemberDetailQueryResponse struct {
Model string `json:"model"`
}
type CrmGrademktMemberDetailQueryResponseResult ¶
type CrmGrademktMemberDetailQueryResponseResult struct {
Response *CrmGrademktMemberDetailQueryResponse `json:"crm_grademkt_member_detail_query_response"`
}
type CrmGrademktMemberGradeactivityInitRequest ¶
type CrmGrademktMemberGradeactivityInitRequest struct {
open_taobao.TaobaoMethodRequest
}
商家通过该接口设置等级活动
func (*CrmGrademktMemberGradeactivityInitRequest) GetResponse ¶
func (r *CrmGrademktMemberGradeactivityInitRequest) GetResponse(accessToken string) (*CrmGrademktMemberGradeactivityInitResponse, []byte, error)
func (*CrmGrademktMemberGradeactivityInitRequest) SetFeather ¶
func (r *CrmGrademktMemberGradeactivityInitRequest) SetFeather(value string)
扩展字段
func (*CrmGrademktMemberGradeactivityInitRequest) SetParameter ¶
func (r *CrmGrademktMemberGradeactivityInitRequest) SetParameter(value string)
活动名称,不传默认为“等级营销”
type CrmGrademktMemberGradeactivityInitResponse ¶
type CrmGrademktMemberGradeactivityInitResponse struct {
Module bool `json:"module"`
}
type CrmGrademktMemberGradeactivityInitResponseResult ¶
type CrmGrademktMemberGradeactivityInitResponseResult struct {
Response *CrmGrademktMemberGradeactivityInitResponse `json:"crm_grademkt_member_gradeactivity_init_response"`
}
type CrmGrademktMemberQueryRequest ¶
type CrmGrademktMemberQueryRequest struct {
open_taobao.TaobaoMethodRequest
}
商家通过该接口查询线上店铺会员。
func (*CrmGrademktMemberQueryRequest) GetResponse ¶
func (r *CrmGrademktMemberQueryRequest) GetResponse(accessToken string) (*CrmGrademktMemberQueryResponse, []byte, error)
func (*CrmGrademktMemberQueryRequest) SetBuyerNick ¶
func (r *CrmGrademktMemberQueryRequest) SetBuyerNick(value string)
会员nick
func (*CrmGrademktMemberQueryRequest) SetFeather ¶
func (r *CrmGrademktMemberQueryRequest) SetFeather(value string)
系统属性,json格式
func (*CrmGrademktMemberQueryRequest) SetParameter ¶
func (r *CrmGrademktMemberQueryRequest) SetParameter(value string)
会员属性-json format
生成方法见http://open.taobao.com/doc/detail.htm?id=101281
type CrmGrademktMemberQueryResponse ¶
type CrmGrademktMemberQueryResponse struct {
Module string `json:"module"`
}
type CrmGrademktMemberQueryResponseResult ¶
type CrmGrademktMemberQueryResponseResult struct {
Response *CrmGrademktMemberQueryResponse `json:"crm_grademkt_member_query_response"`
}
type CrmGroupAddRequest ¶
type CrmGroupAddRequest struct {
open_taobao.TaobaoMethodRequest
}
卖家创建一个新的分组,接口返回一个创建成功的分组的id
func (*CrmGroupAddRequest) GetResponse ¶
func (r *CrmGroupAddRequest) GetResponse(accessToken string) (*CrmGroupAddResponse, []byte, error)
func (*CrmGroupAddRequest) SetGroupName ¶
func (r *CrmGroupAddRequest) SetGroupName(value string)
分组名称,每个卖家最多可以拥有100个分组<br /> 支持最大长度为:15<br /> 支持的最大列表长度为:15
type CrmGroupAddResponse ¶
type CrmGroupAddResponseResult ¶
type CrmGroupAddResponseResult struct {
Response *CrmGroupAddResponse `json:"crm_group_add_response"`
}
type CrmGroupAppendRequest ¶
type CrmGroupAppendRequest struct {
open_taobao.TaobaoMethodRequest
}
将某分组下的所有会员添加到另一个分组,注:1.该操作为异步任务,建议先调用taobao.crm.grouptask.check 确保涉及分组上没有任务;2.若分组下某会员分组数超最大限额,则该会员不会被添加到新分组,同时不影响其余会员添加分组,接口调用依然返回成功。
func (*CrmGroupAppendRequest) GetResponse ¶
func (r *CrmGroupAppendRequest) GetResponse(accessToken string) (*CrmGroupAppendResponse, []byte, error)
func (*CrmGroupAppendRequest) SetFromGroupId ¶
func (r *CrmGroupAppendRequest) SetFromGroupId(value string)
添加的来源分组<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
func (*CrmGroupAppendRequest) SetToGroupId ¶
func (r *CrmGroupAppendRequest) SetToGroupId(value string)
添加的目标分组<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
type CrmGroupAppendResponse ¶
type CrmGroupAppendResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmGroupAppendResponseResult ¶
type CrmGroupAppendResponseResult struct {
Response *CrmGroupAppendResponse `json:"crm_group_append_response"`
}
type CrmGroupDeleteRequest ¶
type CrmGroupDeleteRequest struct {
open_taobao.TaobaoMethodRequest
}
将该分组下的所有会员移除出该组,同时删除该分组。注:删除分组为异步任务,必须先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。
func (*CrmGroupDeleteRequest) GetResponse ¶
func (r *CrmGroupDeleteRequest) GetResponse(accessToken string) (*CrmGroupDeleteResponse, []byte, error)
func (*CrmGroupDeleteRequest) SetGroupId ¶
func (r *CrmGroupDeleteRequest) SetGroupId(value string)
要删除的分组id<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
type CrmGroupDeleteResponse ¶
type CrmGroupDeleteResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmGroupDeleteResponseResult ¶
type CrmGroupDeleteResponseResult struct {
Response *CrmGroupDeleteResponse `json:"crm_group_delete_response"`
}
type CrmGroupMoveRequest ¶
type CrmGroupMoveRequest struct {
open_taobao.TaobaoMethodRequest
}
将一个分组下的所有会员移动到另一个分组,会员从原分组中删除
注:移动属性为异步任务建议先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。
func (*CrmGroupMoveRequest) GetResponse ¶
func (r *CrmGroupMoveRequest) GetResponse(accessToken string) (*CrmGroupMoveResponse, []byte, error)
func (*CrmGroupMoveRequest) SetFromGroupId ¶
func (r *CrmGroupMoveRequest) SetFromGroupId(value string)
需要移动的分组<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
func (*CrmGroupMoveRequest) SetToGroupId ¶
func (r *CrmGroupMoveRequest) SetToGroupId(value string)
目的分组<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
type CrmGroupMoveResponse ¶
type CrmGroupMoveResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmGroupMoveResponseResult ¶
type CrmGroupMoveResponseResult struct {
Response *CrmGroupMoveResponse `json:"crm_group_move_response"`
}
type CrmGroupUpdateRequest ¶
type CrmGroupUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
修改一个已经存在的分组,接口返回分组的修改是否成功
func (*CrmGroupUpdateRequest) GetResponse ¶
func (r *CrmGroupUpdateRequest) GetResponse(accessToken string) (*CrmGroupUpdateResponse, []byte, error)
func (*CrmGroupUpdateRequest) SetGroupId ¶
func (r *CrmGroupUpdateRequest) SetGroupId(value string)
分组的id<br /> 支持最小值为:1<br /> 支持的最大列表长度为:19
func (*CrmGroupUpdateRequest) SetNewGroupName ¶
func (r *CrmGroupUpdateRequest) SetNewGroupName(value string)
新的分组名,分组名称不能包含|或者:<br /> 支持最大长度为:15<br /> 支持的最大列表长度为:15
type CrmGroupUpdateResponse ¶
type CrmGroupUpdateResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmGroupUpdateResponseResult ¶
type CrmGroupUpdateResponseResult struct {
Response *CrmGroupUpdateResponse `json:"crm_group_update_response"`
}
type CrmGroupsGetRequest ¶
type CrmGroupsGetRequest struct {
open_taobao.TaobaoMethodRequest
}
查询卖家的分组,返回查询到的分组列表,分页返回分组
func (*CrmGroupsGetRequest) GetResponse ¶
func (r *CrmGroupsGetRequest) GetResponse(accessToken string) (*CrmGroupsGetResponse, []byte, error)
func (*CrmGroupsGetRequest) SetCurrentPage ¶
func (r *CrmGroupsGetRequest) SetCurrentPage(value string)
显示第几页的分组,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页码为1<br /> 支持最大值为:1000000<br /> 支持最小值为:1<br /> 支持的最大列表长度为:3
func (*CrmGroupsGetRequest) SetPageSize ¶
func (r *CrmGroupsGetRequest) SetPageSize(value string)
每页显示的记录数,其最大值不能超过100条,最小值为1,默认20条<br /> 支持最大值为:100<br /> 支持最小值为:1<br /> 支持的最大列表长度为:3
type CrmGroupsGetResponse ¶
type CrmGroupsGetResponseResult ¶
type CrmGroupsGetResponseResult struct {
Response *CrmGroupsGetResponse `json:"crm_groups_get_response"`
}
type CrmGrouptaskCheckRequest ¶
type CrmGrouptaskCheckRequest struct {
open_taobao.TaobaoMethodRequest
}
检查一个分组上是否有异步任务,异步任务包括1.将一个分组下的所有用户添加到另外一个分组2.将一个分组下的所有用户移动到另外一个分组3.删除某个分组
若分组上有任务则该属性不能被操作。
func (*CrmGrouptaskCheckRequest) GetResponse ¶
func (r *CrmGrouptaskCheckRequest) GetResponse(accessToken string) (*CrmGrouptaskCheckResponse, []byte, error)
func (*CrmGrouptaskCheckRequest) SetGroupId ¶
func (r *CrmGrouptaskCheckRequest) SetGroupId(value string)
分组id
type CrmGrouptaskCheckResponse ¶
type CrmGrouptaskCheckResponse struct {
IsFinished bool `json:"is_finished"`
}
type CrmGrouptaskCheckResponseResult ¶
type CrmGrouptaskCheckResponseResult struct {
Response *CrmGrouptaskCheckResponse `json:"crm_grouptask_check_response"`
}
type CrmMember ¶
type CrmMember struct { AvgPrice float64 `json:"avg_price,string"` BuyerId int `json:"buyer_id"` BuyerNick string `json:"buyer_nick"` City string `json:"city"` CloseTradeAmount float64 `json:"close_trade_amount,string"` CloseTradeCount int `json:"close_trade_count"` Grade int `json:"grade"` GroupIds string `json:"group_ids"` ItemCloseCount int `json:"item_close_count"` ItemNum int `json:"item_num"` LastTradeTime string `json:"last_trade_time"` Province int `json:"province"` RelationSource int `json:"relation_source"` Status string `json:"status"` TradeAmount float64 `json:"trade_amount,string"` TradeCount int `json:"trade_count"` }
会员信息对象
type CrmMemberGroupGetRequest ¶
type CrmMemberGroupGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取买家身上的标签,不返回标签的总人数
func (*CrmMemberGroupGetRequest) GetResponse ¶
func (r *CrmMemberGroupGetRequest) GetResponse(accessToken string) (*CrmMemberGroupGetResponse, []byte, error)
func (*CrmMemberGroupGetRequest) SetBuyerNick ¶
func (r *CrmMemberGroupGetRequest) SetBuyerNick(value string)
会员Nick
type CrmMemberGroupGetResponse ¶
type CrmMemberGroupGetResponse struct { Groups struct { Group []*Group `json:"group"` } `json:"groups"` }
type CrmMemberGroupGetResponseResult ¶
type CrmMemberGroupGetResponseResult struct {
Response *CrmMemberGroupGetResponse `json:"crm_member_group_get_response"`
}
type CrmMembergradeSetRequest ¶
type CrmMembergradeSetRequest struct {
open_taobao.TaobaoMethodRequest
}
设置会员等级
func (*CrmMembergradeSetRequest) GetResponse ¶
func (r *CrmMembergradeSetRequest) GetResponse(accessToken string) (*CrmMembergradeSetResponse, []byte, error)
func (*CrmMembergradeSetRequest) SetBuyerNick ¶
func (r *CrmMembergradeSetRequest) SetBuyerNick(value string)
买家昵称
func (*CrmMembergradeSetRequest) SetGrade ¶
func (r *CrmMembergradeSetRequest) SetGrade(value string)
买家会员级别有四种1:普通会员。2:高级会员。 3VIP会员。 4:至尊VIP<br /> 支持最大值为:4<br /> 支持最小值为:1
type CrmMembergradeSetResponse ¶
type CrmMembergradeSetResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmMembergradeSetResponseResult ¶
type CrmMembergradeSetResponseResult struct {
Response *CrmMembergradeSetResponse `json:"crm_membergrade_set_response"`
}
type CrmMemberinfoUpdateRequest ¶
type CrmMemberinfoUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
编辑会员的基本资料,接口返回会员信息修改是否成功
func (*CrmMemberinfoUpdateRequest) GetResponse ¶
func (r *CrmMemberinfoUpdateRequest) GetResponse(accessToken string) (*CrmMemberinfoUpdateResponse, []byte, error)
func (*CrmMemberinfoUpdateRequest) SetBuyerNick ¶
func (r *CrmMemberinfoUpdateRequest) SetBuyerNick(value string)
买家昵称<br /> 支持最大长度为:32<br /> 支持的最大列表长度为:32
func (*CrmMemberinfoUpdateRequest) SetCity ¶
func (r *CrmMemberinfoUpdateRequest) SetCity(value string)
城市.
请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线
func (*CrmMemberinfoUpdateRequest) SetCloseTradeAmount ¶
func (r *CrmMemberinfoUpdateRequest) SetCloseTradeAmount(value string)
交易关闭金额,单位:分
func (*CrmMemberinfoUpdateRequest) SetCloseTradeCount ¶
func (r *CrmMemberinfoUpdateRequest) SetCloseTradeCount(value string)
交易关闭次数
func (*CrmMemberinfoUpdateRequest) SetGrade ¶
func (r *CrmMemberinfoUpdateRequest) SetGrade(value string)
会员等级,1:普通客户,2:高级会员,3:高级会员 ,4:至尊vip
只有正常会员才给予升级,对于status blacklist的会员升级无效<br /> 支持最大值为:4<br /> 支持最小值为:1<br /> 支持的最大列表长度为:32
func (*CrmMemberinfoUpdateRequest) SetGroupIds ¶
func (r *CrmMemberinfoUpdateRequest) SetGroupIds(value string)
分组的id集合字符串
func (*CrmMemberinfoUpdateRequest) SetItemNum ¶
func (r *CrmMemberinfoUpdateRequest) SetItemNum(value string)
宝贝件数
func (*CrmMemberinfoUpdateRequest) SetProvince ¶
func (r *CrmMemberinfoUpdateRequest) SetProvince(value string)
北京=1,天津=2,河北省=3,山西省=4,内蒙古自治区=5,辽宁省=6,吉林省=7,黑龙江省=8,上海=9,江苏省=10,浙江省=11,安徽省=12,福建省=13,江西省=14,山东省=15,河南省=16,湖北省=17,湖南省=18, 广东省=19,广西壮族自治区=20,海南省=21,重庆=22,四川省=23,贵州省=24,云南省=25,西藏自治区=26,陕西省=27,甘肃省=28,青海省=29,宁夏回族自治区=30,新疆维吾尔自治区=31,台湾省=32,香港特别行政区=33,澳门特别行政区=34,海外=35,约定36为清除Province设置.
请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线.
func (*CrmMemberinfoUpdateRequest) SetStatus ¶
func (r *CrmMemberinfoUpdateRequest) SetStatus(value string)
用于描述会员的状态,normal表示正常,blacklist表示黑名单(不享受会员折扣).<br /> 支持最大长度为:32<br /> 支持的最大列表长度为:32
func (*CrmMemberinfoUpdateRequest) SetTradeAmount ¶
func (r *CrmMemberinfoUpdateRequest) SetTradeAmount(value string)
交易金额,单位:分
func (*CrmMemberinfoUpdateRequest) SetTradeCount ¶
func (r *CrmMemberinfoUpdateRequest) SetTradeCount(value string)
交易笔数
type CrmMemberinfoUpdateResponse ¶
type CrmMemberinfoUpdateResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmMemberinfoUpdateResponseResult ¶
type CrmMemberinfoUpdateResponseResult struct {
Response *CrmMemberinfoUpdateResponse `json:"crm_memberinfo_update_response"`
}
type CrmMembersGetRequest ¶
type CrmMembersGetRequest struct {
open_taobao.TaobaoMethodRequest
}
查询卖家的会员,进行基本的查询,返回符合条件的会员列表
func (*CrmMembersGetRequest) GetResponse ¶
func (r *CrmMembersGetRequest) GetResponse(accessToken string) (*CrmMembersGetResponse, []byte, error)
func (*CrmMembersGetRequest) SetBuyerNick ¶
func (r *CrmMembersGetRequest) SetBuyerNick(value string)
买家的昵称<br /> 支持最大长度为:1000<br /> 支持的最大列表长度为:1000
func (*CrmMembersGetRequest) SetCurrentPage ¶
func (r *CrmMembersGetRequest) SetCurrentPage(value string)
显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1,最大页数为1000<br /> 支持最大值为:1000<br /> 支持最小值为:1
func (*CrmMembersGetRequest) SetGrade ¶
func (r *CrmMembersGetRequest) SetGrade(value string)
会员等级,0:店铺客户,1:普通会员,2:高级会员,3:VIP会员, 4:至尊VIP会员。如果不传入值则默认为全部等级。<br /> 支持最大值为:4<br /> 支持最小值为:-1<br /> 支持的最大列表长度为:32
func (*CrmMembersGetRequest) SetMaxLastTradeTime ¶
func (r *CrmMembersGetRequest) SetMaxLastTradeTime(value string)
最迟上次交易时间
func (*CrmMembersGetRequest) SetMaxTradeAmount ¶
func (r *CrmMembersGetRequest) SetMaxTradeAmount(value string)
最大交易额,单位为元
func (*CrmMembersGetRequest) SetMaxTradeCount ¶
func (r *CrmMembersGetRequest) SetMaxTradeCount(value string)
最大交易量<br /> 支持最小值为:0
func (*CrmMembersGetRequest) SetMinLastTradeTime ¶
func (r *CrmMembersGetRequest) SetMinLastTradeTime(value string)
最早上次交易时间
func (*CrmMembersGetRequest) SetMinTradeAmount ¶
func (r *CrmMembersGetRequest) SetMinTradeAmount(value string)
最小交易额,单位为元
func (*CrmMembersGetRequest) SetMinTradeCount ¶
func (r *CrmMembersGetRequest) SetMinTradeCount(value string)
最小交易量<br /> 支持最小值为:0
func (*CrmMembersGetRequest) SetPageSize ¶
func (r *CrmMembersGetRequest) SetPageSize(value string)
表示每页显示的会员数量,page_size的最大值不能超过100条,最小值不能低于1,<br /> 支持最大值为:100<br /> 支持最小值为:1
type CrmMembersGetResponse ¶
type CrmMembersGetResponse struct { Members struct { BasicMember []*BasicMember `json:"basic_member"` } `json:"members"` TotalResult int `json:"total_result"` }
type CrmMembersGetResponseResult ¶
type CrmMembersGetResponseResult struct {
Response *CrmMembersGetResponse `json:"crm_members_get_response"`
}
type CrmMembersGroupBatchaddRequest ¶
type CrmMembersGroupBatchaddRequest struct {
open_taobao.TaobaoMethodRequest
}
为一批会员添加分组,接口返回添加是否成功,如至少有一个会员的分组添加成功,接口就返回成功,否则返回失败,如果当前会员已经拥有当前分组,则直接跳过
func (*CrmMembersGroupBatchaddRequest) GetResponse ¶
func (r *CrmMembersGroupBatchaddRequest) GetResponse(accessToken string) (*CrmMembersGroupBatchaddResponse, []byte, error)
func (*CrmMembersGroupBatchaddRequest) SetBuyerIds ¶
func (r *CrmMembersGroupBatchaddRequest) SetBuyerIds(value string)
会员的id(一次最多传入10个)<br /> 支持最小值为:1
func (*CrmMembersGroupBatchaddRequest) SetGroupIds ¶
func (r *CrmMembersGroupBatchaddRequest) SetGroupIds(value string)
分组id<br /> 支持最小值为:1
type CrmMembersGroupBatchaddResponse ¶
type CrmMembersGroupBatchaddResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmMembersGroupBatchaddResponseResult ¶
type CrmMembersGroupBatchaddResponseResult struct {
Response *CrmMembersGroupBatchaddResponse `json:"crm_members_group_batchadd_response"`
}
type CrmMembersGroupsBatchdeleteRequest ¶
type CrmMembersGroupsBatchdeleteRequest struct {
open_taobao.TaobaoMethodRequest
}
批量删除多个会员的公共分组,接口返回删除是否成功,该接口只删除多个会员的公共分组,不是公共分组的,不进行删除。如果入参只输入一个会员,则表示删除该会员的某些分组。
func (*CrmMembersGroupsBatchdeleteRequest) GetResponse ¶
func (r *CrmMembersGroupsBatchdeleteRequest) GetResponse(accessToken string) (*CrmMembersGroupsBatchdeleteResponse, []byte, error)
func (*CrmMembersGroupsBatchdeleteRequest) SetBuyerIds ¶
func (r *CrmMembersGroupsBatchdeleteRequest) SetBuyerIds(value string)
买家的Id集合<br /> 支持最小值为:1
func (*CrmMembersGroupsBatchdeleteRequest) SetGroupIds ¶
func (r *CrmMembersGroupsBatchdeleteRequest) SetGroupIds(value string)
会员需要删除的分组<br /> 支持最小值为:1
type CrmMembersGroupsBatchdeleteResponse ¶
type CrmMembersGroupsBatchdeleteResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmMembersGroupsBatchdeleteResponseResult ¶
type CrmMembersGroupsBatchdeleteResponseResult struct {
Response *CrmMembersGroupsBatchdeleteResponse `json:"crm_members_groups_batchdelete_response"`
}
type CrmMembersIncrementGetRequest ¶
type CrmMembersIncrementGetRequest struct {
open_taobao.TaobaoMethodRequest
}
增量获取会员列表,接口返回符合查询条件的所有会员。任何状态更改都会返回,最大允许100
func (*CrmMembersIncrementGetRequest) GetResponse ¶
func (r *CrmMembersIncrementGetRequest) GetResponse(accessToken string) (*CrmMembersIncrementGetResponse, []byte, error)
func (*CrmMembersIncrementGetRequest) SetCurrentPage ¶
func (r *CrmMembersIncrementGetRequest) SetCurrentPage(value string)
显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1<br /> 支持最小值为:1
func (*CrmMembersIncrementGetRequest) SetEndModify ¶
func (r *CrmMembersIncrementGetRequest) SetEndModify(value string)
卖家修改会员信息的时间终点.如果不填写此字段,默认为当前时间.
func (*CrmMembersIncrementGetRequest) SetGrade ¶
func (r *CrmMembersIncrementGetRequest) SetGrade(value string)
会员等级,0:店铺客户,1:普通会员,2:高级会员,3:VIP会员, 4:至尊VIP会员<br /> 支持最大值为:4<br /> 支持最小值为:-1<br /> 支持的最大列表长度为:32
func (*CrmMembersIncrementGetRequest) SetPageSize ¶
func (r *CrmMembersIncrementGetRequest) SetPageSize(value string)
每页显示的会员数,page_size的值不能超过100,最小值要大于1<br /> 支持最大值为:100<br /> 支持最小值为:1
func (*CrmMembersIncrementGetRequest) SetStartModify ¶
func (r *CrmMembersIncrementGetRequest) SetStartModify(value string)
卖家修改会员信息的时间起点.
type CrmMembersIncrementGetResponse ¶
type CrmMembersIncrementGetResponse struct { Members struct { BasicMember []*BasicMember `json:"basic_member"` } `json:"members"` TotalResult int `json:"total_result"` }
type CrmMembersIncrementGetResponseResult ¶
type CrmMembersIncrementGetResponseResult struct {
Response *CrmMembersIncrementGetResponse `json:"crm_members_increment_get_response"`
}
type CrmMembersSearchRequest ¶
type CrmMembersSearchRequest struct {
open_taobao.TaobaoMethodRequest
}
会员列表的高级查询,接口返回符合条件的会员列表.<br>
注:建议获取09年以后的数据,09年之前的数据不是很完整
func (*CrmMembersSearchRequest) GetResponse ¶
func (r *CrmMembersSearchRequest) GetResponse(accessToken string) (*CrmMembersSearchResponse, []byte, error)
func (*CrmMembersSearchRequest) SetBuyerNick ¶
func (r *CrmMembersSearchRequest) SetBuyerNick(value string)
买家昵称<br /> 支持最大长度为:1000<br /> 支持的最大列表长度为:1000
func (*CrmMembersSearchRequest) SetCity ¶
func (r *CrmMembersSearchRequest) SetCity(value string)
城市.
请注意:该字段从2014-4-23之后不再支持作为搜索条件检索.
func (*CrmMembersSearchRequest) SetCurrentPage ¶
func (r *CrmMembersSearchRequest) SetCurrentPage(value string)
显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1.最大1000页<br /> 支持最大值为:1000<br /> 支持最小值为:1
func (*CrmMembersSearchRequest) SetGrade ¶
func (r *CrmMembersSearchRequest) SetGrade(value string)
会员等级,0:店铺客户,1:普通客户,2:高级会员,3:VIP会员, 4:至尊VIP会员<br /> 支持最大值为:4<br /> 支持最小值为:-1<br /> 支持的最大列表长度为:32
func (*CrmMembersSearchRequest) SetGroupId ¶
func (r *CrmMembersSearchRequest) SetGroupId(value string)
分组id<br /> 支持的最大列表长度为:19
func (*CrmMembersSearchRequest) SetMaxAvgPrice ¶
func (r *CrmMembersSearchRequest) SetMaxAvgPrice(value string)
最大平均客单价,单位为元.
请注意:该字段从2014-4-23之后不再支持作为搜索条件检索.
func (*CrmMembersSearchRequest) SetMaxCloseTradeNum ¶
func (r *CrmMembersSearchRequest) SetMaxCloseTradeNum(value string)
最大交易关闭笔数.
请注意:该字段从2014-4-23之后不再支持作为搜索条件检索.<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetMaxItemNum ¶
func (r *CrmMembersSearchRequest) SetMaxItemNum(value string)
最大交易宝贝件数<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetMaxLastTradeTime ¶
func (r *CrmMembersSearchRequest) SetMaxLastTradeTime(value string)
最迟上次交易时间
func (*CrmMembersSearchRequest) SetMaxTradeAmount ¶
func (r *CrmMembersSearchRequest) SetMaxTradeAmount(value string)
最大交易额,单位为元
func (*CrmMembersSearchRequest) SetMaxTradeCount ¶
func (r *CrmMembersSearchRequest) SetMaxTradeCount(value string)
最大交易量<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetMinAvgPrice ¶
func (r *CrmMembersSearchRequest) SetMinAvgPrice(value string)
最少平均客单价,单位为元.
请注意:该字段从2014-4-23之后不再支持作为搜索条件检索.
func (*CrmMembersSearchRequest) SetMinCloseTradeNum ¶
func (r *CrmMembersSearchRequest) SetMinCloseTradeNum(value string)
最小交易关闭的笔数.
请注意:该字段从2014-4-23之后不再支持作为搜索条件检索.<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetMinItemNum ¶
func (r *CrmMembersSearchRequest) SetMinItemNum(value string)
最小交易宝贝件数<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetMinLastTradeTime ¶
func (r *CrmMembersSearchRequest) SetMinLastTradeTime(value string)
最早上次交易时间
func (*CrmMembersSearchRequest) SetMinTradeAmount ¶
func (r *CrmMembersSearchRequest) SetMinTradeAmount(value string)
最小交易额,单位为元
func (*CrmMembersSearchRequest) SetMinTradeCount ¶
func (r *CrmMembersSearchRequest) SetMinTradeCount(value string)
最小交易量<br /> 支持最小值为:0
func (*CrmMembersSearchRequest) SetPageSize ¶
func (r *CrmMembersSearchRequest) SetPageSize(value string)
每页显示的会员数量,page_size的最大值不能超过100,最小值不能小于1<br /> 支持最大值为:100<br /> 支持最小值为:1
func (*CrmMembersSearchRequest) SetProvince ¶
func (r *CrmMembersSearchRequest) SetProvince(value string)
北京=1,天津=2,河北省=3,山西省=4,内蒙古自治区=5,辽宁省=6,吉林省=7,黑龙江省=8,上海=9,江苏省=10,浙江省=11,安徽省=12,福建省=13,江西省=14,山东省=15,河南省=16,湖北省=17,湖南省=18, 广东省=19,广西壮族自治区=20,海南省=21,重庆=22,四川省=23,贵州省=24,云南省=25,西藏自治区26,陕西省=27,甘肃省=28,青海省=29,宁夏回族自治区=30,新疆维吾尔自治区=31,台湾省=32,香港特别行政区=33,澳门特别行政区=34,海外=35.
注:请注意:从2014.4.23之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线.<br /> 支持最大值为:1000000<br /> 支持最小值为:1
func (*CrmMembersSearchRequest) SetRelationSource ¶
func (r *CrmMembersSearchRequest) SetRelationSource(value string)
关系来源,1交易成功,2未成交,3卖家手动吸纳<br /> 支持最大值为:3<br /> 支持最小值为:1<br /> 支持的最大列表长度为:32
type CrmMembersSearchResponseResult ¶
type CrmMembersSearchResponseResult struct {
Response *CrmMembersSearchResponse `json:"crm_members_search_response"`
}
type CrmQnLabelsSellerGetRequest ¶
type CrmQnLabelsSellerGetRequest struct {
open_taobao.TaobaoMethodRequest
}
给千牛旺旺插件单独接口获取卖家设置的标签
func (*CrmQnLabelsSellerGetRequest) GetResponse ¶
func (r *CrmQnLabelsSellerGetRequest) GetResponse(accessToken string) (*CrmQnLabelsSellerGetResponse, []byte, error)
type CrmQnLabelsSellerGetResponse ¶
type CrmQnLabelsSellerGetResponse struct { Groups struct { Group []*Group `json:"group"` } `json:"groups"` }
type CrmQnLabelsSellerGetResponseResult ¶
type CrmQnLabelsSellerGetResponseResult struct {
Response *CrmQnLabelsSellerGetResponse `json:"crm_qn_labels_seller_get_response"`
}
type CrmShopvipCancelRequest ¶
type CrmShopvipCancelRequest struct {
open_taobao.TaobaoMethodRequest
}
此接口用于取消VIP优惠
func (*CrmShopvipCancelRequest) GetResponse ¶
func (r *CrmShopvipCancelRequest) GetResponse(accessToken string) (*CrmShopvipCancelResponse, []byte, error)
type CrmShopvipCancelResponse ¶
type CrmShopvipCancelResponse struct {
IsSuccess bool `json:"is_success"`
}
type CrmShopvipCancelResponseResult ¶
type CrmShopvipCancelResponseResult struct {
Response *CrmShopvipCancelResponse `json:"crm_shopvip_cancel_response"`
}
type GradeEquity ¶
type GradeEquity struct { CurGrade string `json:"cur_grade"` CurGradeName string `json:"cur_grade_name"` ExcludeArea string `json:"exclude_area"` Point int `json:"point"` Postage bool `json:"postage"` }
tmall权益
type GradePromotion ¶
type GradePromotion struct { CurGrade string `json:"cur_grade"` CurGradeName string `json:"cur_grade_name"` Discount int `json:"discount"` NextGrade string `json:"next_grade"` NextGradeName string `json:"next_grade_name"` NextUpgradeAmount int `json:"next_upgrade_amount"` NextUpgradeCount int `json:"next_upgrade_count"` }
卖家设置的等级优惠信息
type Group ¶
type Group struct { GroupCreate string `json:"group_create"` GroupId int `json:"group_id"` GroupModify string `json:"group_modify"` GroupName string `json:"group_name"` MemberCount int `json:"member_count"` Status string `json:"status"` }
描述分组的数据结构
type TmallCrmEquityGetRequest ¶
type TmallCrmEquityGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取天猫卖家设置的等级权益
func (*TmallCrmEquityGetRequest) GetResponse ¶
func (r *TmallCrmEquityGetRequest) GetResponse(accessToken string) (*TmallCrmEquityGetResponse, []byte, error)
type TmallCrmEquityGetResponse ¶
type TmallCrmEquityGetResponse struct { GradeEquitys struct { GradeEquity []*GradeEquity `json:"grade_equity"` } `json:"grade_equitys"` }
type TmallCrmEquityGetResponseResult ¶
type TmallCrmEquityGetResponseResult struct {
Response *TmallCrmEquityGetResponse `json:"tmall_crm_equity_get_response"`
}
type TmallCrmEquitySetRequest ¶
type TmallCrmEquitySetRequest struct {
open_taobao.TaobaoMethodRequest
}
天猫卖家设置权益
func (*TmallCrmEquitySetRequest) GetResponse ¶
func (r *TmallCrmEquitySetRequest) GetResponse(accessToken string) (*TmallCrmEquitySetResponse, []byte, error)
func (*TmallCrmEquitySetRequest) SetExcludeArea ¶
func (r *TmallCrmEquitySetRequest) SetExcludeArea(value string)
不免邮区域,只在包邮条件设置的时候生效。要和等级一一对应。包邮条件为false的时候不起作用。
func (*TmallCrmEquitySetRequest) SetGrade ¶
func (r *TmallCrmEquitySetRequest) SetGrade(value string)
会员等级,用逗号分隔。买家会员级别0:店铺客户 1:普通会员 2 :高级会员 3:VIP会员 4:至尊VIP<br /> 支持最大值为:4<br /> 支持最小值为:1
func (*TmallCrmEquitySetRequest) SetPoint ¶
func (r *TmallCrmEquitySetRequest) SetPoint(value string)
返几倍天猫积分,可以不设置。如果设置则要和等级一一对应。不设置代表清空。
func (*TmallCrmEquitySetRequest) SetPostage ¶
func (r *TmallCrmEquitySetRequest) SetPostage(value string)
是否包邮,可以不设置,如果设置则要和等级一一对应。不设置代表清空
type TmallCrmEquitySetResponse ¶
type TmallCrmEquitySetResponse struct {
IsSuccess bool `json:"is_success"`
}
type TmallCrmEquitySetResponseResult ¶
type TmallCrmEquitySetResponseResult struct {
Response *TmallCrmEquitySetResponse `json:"tmall_crm_equity_set_response"`
}