更新博客
| 事件分组 | 事件标识 |
|---|---|
| article | article/update |
更新博客文章
请求头
- X-Shopline-Topic string required事件的唯一标识。例子:
orders/edited - X-Shopline-Hmac-Sha256 string required该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。例子:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string required店铺的域名。例子:
example.myshopline.com - X-Shopline-Shop-Id string required店铺 ID。例子:
1610418123456 - X-Shopline-Merchant-Id string required商家 ID。例子:
2000001234 - X-Shopline-API-Version string requiredAPI 版本号。例子:
v20250601 - X-Shopline-Webhook-Id string required该 Webhook 事件的 ID。例子:
b54557e48a5fbf7d70bcd043
请求体
- author string博客文章作者名称例子:
3300497415 - blog_collection_id string博客集合ID例子:
6183793d3d13eb7215351ed7 - content_html string博客文章内容html例子:
content - created_at string博客文章创建时间例子:
2021-11-04 09:26:08 - digest string博客文章摘要例子:
博客的摘要 - handle string博客文章handle例子:
/blog - id string博客文章ID例子:
6184e55180b0982aeb720122 imageobject
图片信息alt string图片ALTsrc string图片地址- published boolean博客文章发布状态例子:
true - published_at string博客文章发布时间例子:
2021-11-04 09:26:08 - tags string博客文章tags例子:
1,2,3 - template_name string博客文章模板名称地址例子:
一个模板 - title string博客文章标题例子:
一个标题 - updated_at string博客文章更新时间例子:
2021-11-04 09:26:08 - user_id string博客文章作者ID例子:
3300497415
状态码
收到 SHOPLINE 发送的 Webhook 通知后, 你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?