package main
import (
"log"
"github.com/bububa/opentaobao/core"
userModel "github.com/bububa/opentaobao/model/user"
userApi "github.com/bububa/opentaobao/api/user"
)
func main() {
clt := core.NewSDKClient(APP_KEY, APP_SECRET)
req := userModel.NewTaobaoUserAvatarGetRequest()
req.SetNick("nick")
resp, err := userApi.TaobaoUserAvatarGet(clt, req)
if err != nil {
log.Fatalln(err)
}
log.Printf("%+v\n", resp)
}
为避免生成最终目录内文件过多,以及命名空间冲突问题,根据淘宝开放平台API分类原则对API分包。
分包设置在metadata/assets/package.json,"pkg"参数即为API包名,与"id"(API树节点ID)对应。
下载的metadata如果在package.json无法找到对应的包则不会下载保存。
-
阿里通信API, github.com/bububa/opentaobao/api/alicom
-
阿里健康医, github.com/bububa/opentaobao/api/alihealth
-
物联API, github.com/bububa/opentaobao/api/alink
-
阿里大于API, github.com/bububa/opentaobao/api/aliqin
-
阿里云API, github.com/bububa/opentaobao/api/aliyun
-
阿里云ocsAPI, github.com/bububa/opentaobao/api/aliyunocs
-
本地生活API, github.com/bububa/opentaobao/api/alsc
-
反欺诈风控API, github.com/bububa/opentaobao/api/antifraud
-
司法拍卖, github.com/bububa/opentaobao/api/auction
-
阿里车联网API, github.com/bububa/opentaobao/api/autonavi
-
百川, github.com/bububa/opentaobao/api/baichuan
-
宝点API, github.com/bububa/opentaobao/api/baodian
-
保险API, github.com/bububa/opentaobao/api/baoxian
-
淘宝内容API, github.com/bububa/opentaobao/api/beehive
-
账务API, github.com/bububa/opentaobao/api/bill
-
会员卡, github.com/bububa/opentaobao/api/blackvip
-
汽车票API, github.com/bububa/opentaobao/api/bus
-
彩票API, github.com/bububa/opentaobao/api/caipiao
-
旅行用车API, github.com/bububa/opentaobao/api/car
-
类目API, github.com/bububa/opentaobao/api/category
-
淘宝抽奖平台API, github.com/bububa/opentaobao/api/choujiang
-
淘宝同城API, github.com/bububa/opentaobao/api/cityretail
-
百川推送, github.com/bububa/opentaobao/api/cloudpush
-
yunos推送服务api, github.com/bububa/opentaobao/api/cmns
-
菜鸟配送API, github.com/bububa/opentaobao/api/cntms
-
店铺会员管理API, github.com/bububa/opentaobao/api/crm
-
DMP API, github.com/bububa/opentaobao/api/dmp
-
阿里健康药API, github.com/bububa/opentaobao/api/drug
-
数据API, github.com/bububa/opentaobao/api/dt
-
生活汇API, github.com/bububa/opentaobao/api/elife
-
电子物流API, github.com/bububa/opentaobao/api/eticket
-
分销API, github.com/bububa/opentaobao/api/fenxiao
-
电影票API, github.com/bububa/opentaobao/api/film
-
机票API, github.com/bububa/opentaobao/api/flight
-
淘宝游戏API, github.com/bububa/opentaobao/api/game
-
游戏激励平台API, github.com/bububa/opentaobao/api/gameact
-
菜鸟无线API, github.com/bububa/opentaobao/api/guoguo
-
酒店导购API, github.com/bububa/opentaobao/api/hotel
-
国际站商品API, github.com/bububa/opentaobao/api/icbu
-
天猫互动接口, github.com/bububa/opentaobao/api/interact
-
智能设备, github.com/bububa/opentaobao/api/iot
-
JAE, github.com/bububa/opentaobao/api/jae
-
ONS消息服务, github.com/bububa/opentaobao/api/jms
-
聚石塔API, github.com/bububa/opentaobao/api/jst
-
聚划算API, github.com/bububa/opentaobao/api/ju
-
知识库API, github.com/bububa/opentaobao/api/kclub
-
地动仪, github.com/bububa/opentaobao/api/lbs
-
法务诉讼对外API, github.com/bububa/opentaobao/api/legalcase
-
生活服务API, github.com/bububa/opentaobao/api/lifeservice
-
物流API, github.com/bububa/opentaobao/api/logistic
-
码上淘API, github.com/bububa/opentaobao/api/ma
-
多媒体平台API, github.com/bububa/opentaobao/api/media
-
天猫美妆API, github.com/bububa/opentaobao/api/mei
-
喵街API, github.com/bububa/opentaobao/api/mos
-
手机淘宝API, github.com/bububa/opentaobao/api/mtop
-
手淘开放API, github.com/bububa/opentaobao/api/mtopopen
-
网上法庭对外API, github.com/bububa/opentaobao/api/nazca
-
文本算法API, github.com/bububa/opentaobao/api/nlp
-
openimAPI, github.com/bububa/opentaobao/api/openim
-
拍卖API, github.com/bububa/opentaobao/api/paimai
-
商品API, github.com/bububa/opentaobao/api/product
-
营销API, github.com/bububa/opentaobao/api/promotion
-
千牛接口, github.com/bububa/opentaobao/api/qianniu
-
奇门仓储API, github.com/bububa/opentaobao/api/qimen
-
质检品控API, github.com/bububa/opentaobao/api/qt
-
退款API, github.com/bububa/opentaobao/api/refund
-
国际站外贸直通车API, github.com/bububa/opentaobao/api/scbp
-
聚安全API, github.com/bububa/opentaobao/api/security
-
服务平台API, github.com/bububa/opentaobao/api/servicecenter
-
店铺API, github.com/bububa/opentaobao/api/shop
-
直通车API, github.com/bububa/opentaobao/api/simba
-
子账号管理API, github.com/bububa/opentaobao/api/subuser
-
Tanx API, github.com/bububa/opentaobao/api/tanx
-
虚拟院线API, github.com/bububa/opentaobao/api/taotv
-
淘宝客API, github.com/bububa/opentaobao/api/tbk
-
门票-商品管理API, github.com/bububa/opentaobao/api/ticket
-
天猫会员积分, github.com/bububa/opentaobao/api/tmallcms
-
天猫国际API, github.com/bububa/opentaobao/api/tmallhk
-
天猫精品库API, github.com/bububa/opentaobao/api/tmallitem
-
天猫服务数据API, github.com/bububa/opentaobao/api/tmallsc
-
天猫服务商品API, github.com/bububa/opentaobao/api/tmallservice
-
消息服务API, github.com/bububa/opentaobao/api/tmc
-
交易API, github.com/bububa/opentaobao/api/trade
-
评价API, github.com/bububa/opentaobao/api/traderate
-
火车票API, github.com/bububa/opentaobao/api/train
-
度假-商品管理API, github.com/bububa/opentaobao/api/travel
-
tv支付, github.com/bububa/opentaobao/api/tvpay
-
用户API, github.com/bububa/opentaobao/api/user
-
工具API, github.com/bububa/opentaobao/api/util
-
旺旺API, github.com/bububa/opentaobao/api/wangwang
-
电子面单API, github.com/bububa/opentaobao/api/waybill
-
五道口API, github.com/bububa/opentaobao/api/wdk
-
手淘分享, github.com/bububa/opentaobao/api/wirelessshare
-
物流宝API, github.com/bububa/opentaobao/api/wlb
-
菜鸟集货API, github.com/bububa/opentaobao/api/wlbimports
-
菜鸟仓配API, github.com/bububa/opentaobao/api/wms
-
酒店API, github.com/bububa/opentaobao/api/xhotel
-
虾米API, github.com/bububa/opentaobao/api/xiami
-
YunOS, github.com/bububa/opentaobao/api/yunos