当前位置:网站首页>tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口
tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口
2022-07-02 11:21:00 【wx_1597063760】
tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口可适用于店铺上传商品,店铺发货,店铺订单详情获取,店铺明文接口,订单同步,订单推送等业务,下面是一套完整的商品上传的接口,若是接口不够可以再次到开放平台中找,接口如下:
1. taobao.itemcats.authorize.get 授权类目
2.tmall.product.schema.match( product匹配接口 )
3.tmall.product.schema.get( 产品信息获取schema获取 )
4.tmall.product.schema.add( 使用Schema文件发布一个产品 )
5.alibaba.item.publish.props.get 商品级联属性信息获取
6.alibaba.item.publish.submit 进行商品上新
7.tmall.product.add.schema.get 获取产品发布涉及的规则
8.alibaba.item.publish.schema.get 获取商品发布的通用规则
9.alibaba.item.edit.schema.get 商品编辑获取schema信息
10.alibaba.item.edit.submit 商品编辑提交schema信息
11. alibaba.item.edit.fastupdate 商品增量编辑
12.taobao.items.onsale.get 获取当前会话用户出售中的商品列表
13.taobao.item.update.delisting 商品下架
14.taobao.item.quantity.update 宝贝/SKU库存修改
15. alibaba.item.operate.upshelf (商品上架)
以上接口可以实现一次完整的商品发货,上下架, 修改库存, 修改价格至淘宝天猫店铺,可以用于多个店铺,希望能够帮助到有需要本地或数据库上传至淘宝天猫店铺发货的朋友,接口代码对接如下:
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.请求参数
请求参数: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
3.请求示例(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)
4.响应示例
{
"tmall_product_schema_add_response":{
"add_product_result":"<itemrule> <field id=\"product_id\" name=\"产品ID\" type=\"input \">1221<\/field> <field id=\"create_time\" name=\"创建时间\" type=\"input \">2014-01-01 00:00:00<\/field> <itemrule>"
}
}
边栏推荐
- A white hole formed by antineutrons produced by particle accelerators
- Methods of software testing
- 一般来讲,如果频繁出现inconsistent tab and space的报错
- HMS core machine learning service helps zaful users to shop conveniently
- Analysis of CPU surge in production environment service
- Data Lake (11): Iceberg table data organization and query
- Uniapp automated test learning
- Start to write a small demo - three piece chess
- Qt新建项目
- Essential elements of science fiction 3D scenes - City
猜你喜欢
Uniapp automated test learning
Development and design of animation surrounding mall sales website based on php+mysql
< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621
Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute
2022家用投影仪首选!当贝F5强悍音画效果带来极致视听体验
Daily learning 2
Quick analysis: easy to share the Internet
php链表创建和遍历
Analysis of CPU surge in production environment service
Codeforces Round #803 (Div. 2)(A~D)
随机推荐
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
Fabric.js 手动加粗文本iText
数据湖(十一):Iceberg表数据组织与查询
快解析:轻松实现共享上网
Route (II)
一般来讲,如果频繁出现inconsistent tab and space的报错
< schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv
NLA natural language analysis makes data analysis more intelligent
Daily learning 3
STM32标准固件库函数名记忆(二)
2022家用投影仪首选!当贝F5强悍音画效果带来极致视听体验
The use of TestNG, the testing framework (II): the use of TestNG XML
Using computed in uni app solves the abnormal display of data () value in tab switching
Design and implementation of car query system based on php+mysql
每日学习2
uni-app中使用computed解决了tab切换中data()值显示的异常
In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028
A white hole formed by antineutrons produced by particle accelerators
NLA自然语言分析实现数据分析零门槛
Check password