当前位置:网站首页>淘宝店铺发布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)
边栏推荐
- 设f(x)=∑x^n/n^2,证明f(x)+f(1-x)+lnxln(1-x)=∑1/n^2
- QT simple layout box model with spring
- Mysql database learning (8) -- MySQL content supplement
- Array initialization of local variables
- Torch optimizer small parsing
- 论文阅读【Open-book Video Captioning with Retrieve-Copy-Generate Network】
- Leakage relay llj-100fs
- Talk about mvcc multi version concurrency controller?
- Design, configuration and points for attention of network arbitrary source multicast (ASM) simulation using OPNET
- 利用OPNET进行网络仿真时网络层协议(以QoS为例)的使用、配置及注意点
猜你喜欢

Unity让摄像机一直跟随在玩家后上方

How digitalization affects workflow automation

数字化如何影响工作流程自动化

JHOK-ZBL1漏电继电器

Life experience of an update statement

漏电继电器LLJ-100FS

Leakage relay llj-100fs

10 distributed databases that take you to the galaxy

Is PMP really useful?

Zero sequence aperture of leakage relay jolx-gs62 Φ one hundred
随机推荐
K6EL-100漏电继电器
Talk about mvcc multi version concurrency controller?
利用OPNET进行网络仿真时网络层协议(以QoS为例)的使用、配置及注意点
DOM-节点对象+时间节点 综合案例
数字化创新驱动指南
“多模态”概念
CentOS 7.9 installing Oracle 21C Adventures
Leakage relay jelr-250fg
The founder has a debt of 1billion. Let's start the class. Is it about to "end the class"?
Design, configuration and points for attention of network unicast (one server, multiple clients) simulation using OPNET
Two methods of thread synchronization
Is the human body sensor easy to use? How to use it? Which do you buy between aqara green rice and Xiaomi
JHOK-ZBG2漏电继电器
JVM(十九) -- 字节码与类的加载(四) -- 再谈类的加载器
sql优化常用技巧及理解
pytest测试框架——数据驱动
How does redis implement multiple zones?
创始人负债10亿,开课吧即将“下课”?
Use, configuration and points for attention of network layer protocol (taking QoS as an example) when using OPNET for network simulation
Dj-zbs2 leakage relay