stable本次发布有变化全部展示
来自 Shopee 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§2 Overview
Overview
| Field | Value |
|---|---|
| Push code | 12 |
| Timeout (seconds) | 3 |
| Retry strategy (seconds) | 300, 1800, 10800 |
| Guaranteed delivery | No |
§3 Push parameters
Push parameters
| Name | Type | Required | Sample | Description |
|---|---|---|---|---|
| code | int32 | 12 | Shopee's unique identifier for a push notification | |
| timestamp | timestamp | 1568606634 | Timestamp that indicates the message was sent. | |
| data | object[] | |||
| data.merchant_expire_soon | int64[] | [123123,123123,4342,3242342] | The merchant id of the merchants whose authorization expires within one week. | |
| data.shop_expire_soon | int64[] | [23213,243242,342343,42342345656,45345] | The shop id of the shops whose authorization expires within one week. | |
| data.user_expire_soon | int64[] | [368765104, 368765105, 368765106] | The user_id of the users whose authorization expires within one week. | |
| data.expire_before | timestamp | 1619740800 | The expiration time of pushed merchants and shops is before this time | |
| data.page_no | int32 | 1 | ||
| data.total_page | int32 | 2 |
§4 Sample
Sample
{
"code": 12,
"timestamp": 1568606634,
"data": {
"merchant_expire_soon":[123123,123123,4342,3242342],
"shop_expire_soon": [23213,243242,342343,42342345656,45345],
"user_expire_soon": [368765104,368765105,368765106],
"expire_before": 1619740800,
"page_no":1,
"total_page": 2
}
}
§5 Update log
Update log
| Date | Change |
|---|---|
| 2022-08-18 | New Push Mechanism |
