还没有商品!
购物车中还没有商品,赶紧选购吧!
文档帮助中心
文章分类列表

dsc.attribute.list.get (获取属性列表API)

API对接接口 > 属性类型API > dsc.attribute.list.get (获取属性列表API)

dsc.attribute.list.get (获取属性列表API)

获取属性列表API,获取属性相关信息。

公共参数

  • 请求地址:

  • 环境HTTP请求地址HTTPS请求地址
    正式环境https://www.xxx.com/api.phphttps://www.xxx.com/api.php
  • 公共请求参数:

  • 名称类型是否必须描述
    methodStringAPI接口名称
    app_keyStringAPI接口AppKey

请求参数

名称类型是否必须示例值更多限制描述
cat_idNumber可选
(唯一性)属性类型ID
pageNumber可选1默认列表分页当前页
page_sizeNumber可选15默认列表分页每页显示条数
formattype必须jsonjson或xml接口类型

响应参数

名称类型示例值描述
attr_idNumber
属性ID
cat_idNumber
属性类型ID
attr_nameString
属性名称
attr_cat_typeNumber
分类筛选样式
attr_input_typeNumber
该属性值的录入方式
attr_typeNumber
属性是否可选
attr_valuesText
可选值列表
attr_indexNumber
能否进行检索
sort_orderNumber
排序
is_linkedNumber
相同属性值的商品是否关联

请求示例

  • PHP

    • $url="http(s)://www.xxx.com/api.php?app_key=A788F457-1A7D-4CC7-ABA0-BFE212BCCD9A&method=dsc.attribute.list.get&format=xml"
    • $Http = new Http();
    • $Http->doGet($url);

1683530397491.png

1683530415236.png

1683530427771.png

1683530435261.png

错误码解释

错误码错误描述解决方案
error返回值

0:成功获取数据

1:数据为空值


发表评论
* 内容:
 
上一篇:dsc.goodstype.del.get (删除属性类型信息API) 下一篇:dsc.goodstype.info.get (获取单条属性信息API)