我的客户在Square拥有一家在线商店。例如,直接的产品链接是:
https://squareup.com/store/barbara-westfall/item/vermillion-wave
我正在使用商品目录API成功下载她所有产品的列表-获取名称,描述,价格,图像url和商品ID。示例:
{
"name": "Vermillion Wave",
"description": "Art Glass by Barbara Westfall, M.F.A.\n14\"w x 18\"h\nFused glass. Colors: Red, Orange, Iridescent blue\nIncludes hardware for wall mount",
"visibility": "PUBLIC",
"available_online": true,
"category_id": "BJBBZFC4XG7OJNTKTHZJIXZN",
"ordinal": 6,
"tax_ids": [
"FNLAO42DW2BZ7QBH6EOFG724"
],
"image_url": "https://square-production.s3.amazonaws.com/files/2ccc245b18a52e82cd3edf524cf7ca52131fc400/original.jpeg",
"variations": [
{
"type": "ITEM_VARIATION",
"id": "573MTFRL37CO2YX5LCAPKYKF",
"updated_at": "2018-02-04T05:14:27.391Z",
"version": 1517721267391,
"is_deleted": false,
"catalog_v1_ids": [
{
"catalog_v1_id": "38b4d712-3882-45c7-982f-eaa3ea042e32",
"location_id": "8MVKB4PVKKAF9"
}
],
"present_at_all_locations": false,
"present_at_location_ids": [
"8MVKB4PVKKAF9"
],
"item_variation_data": {
"item_id": "CRBWP5INOYUN46TTQPLWNQC6",
"name": "Regular",
"ordinal": 1,
"pricing_type": "FIXED_PRICING",
"price_money": {
"amount": 24500,
"currency": "USD"
}
}
}
],
"product_type": "REGULAR",
"skip_modifier_screen": false
}
我想基于商品目录API中的数据提供到在线商店商品的链接,但是我在此商品数据中看不到任何允许的信息。此示例中的url确实是名称的小写版本,带有短划线,但是她的大多数商品的名称与子词中的名称完全不同。
还有其他方法可以获取该网址,以便我提供链接吗?
答案 0 :(得分:0)
我看了看您提供的示例链接,看来您的客户正在使用Square免费在线商店。不幸的是,Catalog API没有提供到免费在线商店的链接。