內容簡介
WooCommerce Media API 是 WooCommerce API 的擴充功能,含有新的端點媒體 (/wp-json/wc/v2/media)。這是現有WordPress REST API 的包裝。此外掛能夠幫助您繞過 WordPress REST API 的身分驗證設置和 JWT,直接使用 WooCommerce API 上傳媒體和圖像。
媒體屬性可在此處找到。
新增了兩個屬性以建立媒體文件:
media_path ( string write-only): 檔案相對路徑 (在 wp-content/uploads 下),例如:2018/05/department/brand。
media_attachment ( string write-only): 媒體二進位制字串的 base64 格式, 例如:R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==。
列出所有媒體:可用的參數在此處
WooPOS (WooCommerce POS 和庫存管理桌面應用程序) 用戶:請安裝此插件以從 WooPOS 管理圖像。
外掛標籤
開發者團隊
原文外掛簡介
WooCommerce Media API is an extension of WooCommerce API with new endpoint media(/wp-json/wc/v2/media). This is a wrapper of existing WordPress REST API. This plugin will help you bypass WordPress REST API authentication settings and JWT, and use WooCommerce API to upload medias and images directly.
Media properties can be found here.
Two additional properties have been added to create media file:
media_path (string write-only): relative path folder (under wp-content/uploads) of the file to create. eg: 2018/05/department/brand.
media_attachment (string write-only): base64 string of media binary file. eg: R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==.
List all media: available parameters here
WooPOS (WooCommerce Point Of Sale and Inventory Management desktop app) user: please install this plugin to manage images from WooPOS.
