当前位置:网站首页>淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享
淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享
2022-07-06 23:38:00 【wx_1597063760】
淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享如下
1.公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中,点击获取测试key和secret) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
2.商品发布步骤如下:
可参考开放平台地址:
https://open.taobao.com/docV3.htm?spm=a219a.7386797.0.0.2fc9669ar9ggq9&source=search&docId=119447&docType=1
确定已授权的类目&品牌
涉及接口:
taobao.itemcats.authorize.get( 查询商家被授权品牌列表和类目列表 )
taobao.itemcats.get( 获取后台供卖家发布商品的标准商品类目 )
3.发布
备注说明:天猫商品需要挂靠产品,所以产品发布仅支持天猫店铺;淘宝 和 特价版商品无需挂靠产品,不需要产品发布,直接发布商品即可.
涉及接口:
tmall.product.match.schema.get( 获取匹配产品规则 )
tmall.product.schema.match( product匹配接口 )
tmall.product.schema.get( 产品信息获取schema获取 )
tmall.product.add.schema.get( 产品发布规则获取接口 )
tmall.product.schema.add( 使用Schema文件发布一个产品 )
4.发布商品(编辑商品)
涉及接口:
alibaba.item.publish.schema.get(获取商品发布规则信息)
alibaba.item.publish.props.get(商品级联属性信息获取)
alibaba.item.publish.submit(商品发布)
5.商品编辑更新涉及接口
alibaba.item.edit.schema.get (商品编辑获取schema信息)
alibaba.item.edit.submit (商品编辑提交schema信息)
alibaba.item.edit.fastupdate (商品编辑增量更新)
6.请求参数
请求参数:api=
参数说明:其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致 https://open.taobao.com/api.htm?docId=140&docType=2
名称 类型 必须 描述 api String 淘宝开放平台的接口名(如:taobao.picture.upload( 上传单张图片 )) session String 授权换取的session_id [其他参数] String 其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致
https://open.taobao.com/api.htm?docId=140&docType=2
7.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://vx19970108018/taobao/custom/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&method="
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
边栏推荐
- [question] Compilation Principle
- TabLayout修改自定义的Tab标题不生效问题
- [QT] custom control loading
- Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
- Jhok-zbg2 leakage relay
- Full link voltage test: the dispute between shadow database and shadow table
- 漏电继电器LLJ-100FS
- CentOS 7.9 installing Oracle 21C Adventures
- DOM node object + time node comprehensive case
- np. random. Shuffle and np Use swapaxis or transfer with caution
猜你喜欢
[question] Compilation Principle
利用OPNET进行网络仿真时网络层协议(以QoS为例)的使用、配置及注意点
数字化创新驱动指南
How digitalization affects workflow automation
Egr-20uscm ground fault relay
Design, configuration and points for attention of network unicast (one server, multiple clients) simulation using OPNET
【js组件】自定义select
Safe landing practice of software supply chain under salesforce containerized ISV scenario
Annotation初体验
[JS component] date display.
随机推荐
利用OPNET进行网络指定源组播(SSM)仿真的设计、配置及注意点
Jhok-zbl1 leakage relay
Leakage relay llj-100fs
JVM (19) -- bytecode and class loading (4) -- talk about class loader again
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
Disk monitoring related commands
Full link voltage test: the dispute between shadow database and shadow table
Dbsync adds support for mongodb and ES
JHOK-ZBL1漏电继电器
做自媒体视频剪辑,专业的人会怎么寻找背景音乐素材?
JVM (XX) -- performance monitoring and tuning (I) -- Overview
Leakage relay jelr-250fg
How digitalization affects workflow automation
Make web content editable
Harmonyos fourth training
Autowired注解用于List时的现象解析
EGR-20USCM接地故障继电器
Leakage relay jd1-100
QT simple layout box model with spring
app clear data源码追踪