Documentation ¶
Overview ¶
淘宝开放平台的 go 语言 SDK, MIT许可。 自带web小工具: 可测试基本流程, 可根据 ApiMetadata.xml 重新生成SDK源码并编译, 保持与淘宝同步
Index ¶
- Constants
- Variables
- func GetUrlForAuth(appKey, redirectUri, state string) (*url.URL, error)
- type ErrResponse
- type TaobaoMethodRequest
- type TaobaoRequest
- type TaobaoRequestI
- type TaobaoTopErrResponse
- type TokenGetRequest
- func (t *TokenGetRequest) GetResponse() (*TokenGetResponse, []byte, error)
- func (t *TokenGetRequest) SetAppKey(val string)
- func (t *TokenGetRequest) SetAppSecret(val string)
- func (t *TokenGetRequest) SetCode(val string)
- func (t *TokenGetRequest) SetRedirectUri(val string)
- func (t *TokenGetRequest) SetState(val string)
- type TokenGetResponse
Constants ¶
View Source
const VersionNo = "0.0.1"
Variables ¶
View Source
var ( InsecureSkipVerify = true // 相信淘宝服务器,跳过对其检查,减少客户端配置问题 DisableCompression = false // 默认压缩数据 )
Functions ¶
Types ¶
type ErrResponse ¶
type TaobaoMethodRequest ¶
type TaobaoMethodRequest struct {
TaobaoRequest
}
func (*TaobaoMethodRequest) GetResponse ¶
func (t *TaobaoMethodRequest) GetResponse(accessToken, apiMethodName string, resp interface{}) ([]byte, error)
type TaobaoRequest ¶
type TaobaoRequest struct {
// contains filtered or unexported fields
}
func (*TaobaoRequest) GetReqUrl ¶
func (t *TaobaoRequest) GetReqUrl() string
func (*TaobaoRequest) GetValue ¶
func (t *TaobaoRequest) GetValue(key string) string
func (*TaobaoRequest) GetValues ¶
func (t *TaobaoRequest) GetValues() url.Values
func (*TaobaoRequest) SetReqUrl ¶
func (t *TaobaoRequest) SetReqUrl(resUrl string)
func (*TaobaoRequest) SetValue ¶
func (t *TaobaoRequest) SetValue(key, value string)
type TaobaoRequestI ¶
type TaobaoTopErrResponse ¶
type TaobaoTopErrResponse struct { Error string `json:"error"` ErrorDescription string `json:"error_description"` ErrResponse *ErrResponse `json:"error_response"` }
func (*TaobaoTopErrResponse) GetErr ¶
func (t *TaobaoTopErrResponse) GetErr() string
type TokenGetRequest ¶
type TokenGetRequest struct {
TaobaoRequest
}
func (*TokenGetRequest) GetResponse ¶
func (t *TokenGetRequest) GetResponse() (*TokenGetResponse, []byte, error)
func (*TokenGetRequest) SetAppKey ¶
func (t *TokenGetRequest) SetAppKey(val string)
func (*TokenGetRequest) SetAppSecret ¶
func (t *TokenGetRequest) SetAppSecret(val string)
func (*TokenGetRequest) SetCode ¶
func (t *TokenGetRequest) SetCode(val string)
func (*TokenGetRequest) SetRedirectUri ¶
func (t *TokenGetRequest) SetRedirectUri(val string)
func (*TokenGetRequest) SetState ¶
func (t *TokenGetRequest) SetState(val string)
type TokenGetResponse ¶
type TokenGetResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` ReExpiresIn int `json:"re_expires_in"` R1ExpiresIn int `json:"r1_expires_in"` R2ExpiresIn int `json:"r2_expires_in"` W1ExpiresIn int `json:"w1_expires_in"` W2ExpiresIn int `json:"w2_expires_in"` TaobaoUserNick string `json:"taobao_user_nick"` TaobaoUserId string `json:"taobao_user_id"` SubTaobaoUserId string `json:"sub_taobao_user_id"` SubTaobaoUserNick string `json:"sub_taobao_user_nick"` }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
api
|
|
alipy
提供查询商家支付宝财务流水功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供查询商家支付宝财务流水功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
bill
提供商家账务信息查询 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供商家账务信息查询 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
caipiao
支持营销活动赠送彩票功能实现 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
支持营销活动赠送彩票功能实现 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
crm
API无需订购ecrm工具也可调用。
|
API无需订购ecrm工具也可调用。 |
delivery
提供了发货,物流单详情,区域地址和物流公司信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了发货,物流单详情,区域地址和物流公司信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
dmt
解决淘宝各种文件上传、管理维护、使用的统一解决方案平台 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
解决淘宝各种文件上传、管理维护、使用的统一解决方案平台 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
eai
天猫逆向流程API auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
天猫逆向流程API auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
favorite
提供了收藏夹添加和查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了收藏夹添加和查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
fenxiao
提供了分销商信息和采购单信息的查询以及分销产品的添加和更新等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了分销商信息和采购单信息的查询以及分销产品的添加和更新等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
fuwu
提供服务平台相关API,包括用户应用订购关系相关查询,定向营销等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供服务平台相关API,包括用户应用订购关系相关查询,定向营销等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
hotel
淘宝酒店业务 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
淘宝酒店业务 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
item
提供了标准类目,类目属性和类目属性值的查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了标准类目,类目属性和类目属性值的查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
jipiao
auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
jp
提供天猫精选的商品、店铺、活动等,方便合作伙伴做天猫导购 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供天猫精选的商品、店铺、活动等,方便合作伙伴做天猫导购 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
marketing
提供淘宝营销工具的业务,包括店铺优惠券、会员关系管理等 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供淘宝营销工具的业务,包括店铺优惠券、会员关系管理等 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
notice
配合主动通知业务,提供商品,交易,退款和评价等数据或状态变更的查询功能,使用:http://open.taobao.com/doc/category_list.htm?spm=0.0.0.0.maU6vt&id=87 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
配合主动通知业务,提供商品,交易,退款和评价等数据或状态变更的查询功能,使用:http://open.taobao.com/doc/category_list.htm?spm=0.0.0.0.maU6vt&id=87 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
pinjia
提供了评价的添加和查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了评价的添加和查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
product
提供了商品以及商品相关的sku,邮费增加,修改功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了商品以及商品相关的sku,邮费增加,修改功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
rds
管理聚石塔DB实例 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
管理聚石塔DB实例 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
recommend
通过商品、类目、用户等条件推荐优质商品 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
通过商品、类目、用户等条件推荐优质商品 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
refund
提供了卖家接收退款,退款留言等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了卖家接收退款,退款留言等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
shop
提供了店铺查询,店铺自定义类目的查询和更新 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了店铺查询,店铺自定义类目的查询和更新 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
simba
提供卖家直通车投放管理功能,增值包现已开放申请 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供卖家直通车投放管理功能,增值包现已开放申请 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
subuser
提供子账号相关的帐号及角色的查询、授权等信息及操作 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供子账号相关的帐号及角色的查询、授权等信息及操作 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
taobaoke
提供了淘宝客商品列表和淘宝客单品详情推广,店铺推广,类目和关键字推广以及淘客报表查询等功能.常见的淘客问题,请看该文档的“功能介绍” auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了淘宝客商品列表和淘宝客单品详情推广,店铺推广,类目和关键字推广以及淘客报表查询等功能.常见的淘客问题,请看该文档的“功能介绍” auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
tools
提供了系统时间查询、关键词过滤、定时任务管理、异步任务管理等功能的API auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了系统时间查询、关键词过滤、定时任务管理、异步任务管理等功能的API auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
trade
提供了订单下载,修改收货地址、修改交易备注等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了订单下载,修改收货地址、修改交易备注等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
trvael
提供旅行商品发布管理功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供旅行商品发布管理功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
udp
提供淘宝数据开放 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供淘宝数据开放 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
user
提供了用户基本信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了用户基本信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
wangwang
提供了旺旺聊天记录,平均等待时间,客服评价统计,客服未回复人数和客服接待数等绩效考核功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了旺旺聊天记录,平均等待时间,客服评价统计,客服未回复人数和客服接待数等绩效考核功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
widget
组件API列表 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
组件API列表 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
wlb
提供了物流宝库存,商品,订单和发货等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
|
提供了物流宝库存,商品,订单和发货等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com |
web 小工具, 测试淘宝GoSdk基本流程, 能根据淘宝 ApiMetadata.xml 重新生成SDK源码并编译
|
web 小工具, 测试淘宝GoSdk基本流程, 能根据淘宝 ApiMetadata.xml 重新生成SDK源码并编译 |
Click to show internal directories.
Click to hide internal directories.