开放 API
使用说明
获取授权
全部 API
- Shop
- Metafields
- Customer
- CustomerAddress
- Account
- Product
- ProductVariant
- ProductImage
- Theme
- Asset
- Country
- Province
- City
- District
- ScriptTag
- Order
- Shipment
- ShipmentSupplier
- Payment
- PaymentMethod
- Redirect
- Page
- Webhook
- Blog
- BlogAuthor
- CustomerLevel
- StoreFile
- Promotion
- Coupon
- Post
- AfterSale
StoreFile
StoreFile
StoreFile 为网站的图片对象,通过 API 可以上传到网站图片管理中。
StoreFile 相关API
GET /store_file/get_all_dir
获取网站图片目录
- 获取网站图片目录
- GET /store_file/get_all_dir
{ "dirs": [ { "id": 14955, "name": "网站目录", "parent_dir_id": 14956, "count_file": 7 } ] }
GET /store_file/get_all
获取网站图片列表
- 获取网站图片列表
- GET /store_file/get_all
{ "files": { "data": [ { "id": 592108, "doc_id": "59644cbd0dd76c018a000318", "asset_id": "59644cbd0dd76c018a000319", "content_type": "image/jpeg", "file_name": "07.jpeg", "width": 1920, "height": 1080, "refer_count": 0, "epoch": "1499745470", "dir_id": 0, "src": "/image/59644cbd0dd76c018a000319/s.jpeg?v=1499745470" } ] }
POST /store_file/upload_base64
上传图片
- file_name
- 文件名
- base64
- 图片文件的base64数据
- 上传图片
- POST /store_file/upload_base64
{ file_name: "abc.jpg", base64:"data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs=" }