deviceModel
,registrantPlatformType
,regId
是必传的以外,其他的上传只做日志记录,header 里已有的数据会从 header 里取。Authorization: Bearer ********************
{
"deviceSystem": 0,
"deviceSystemVersion": "string",
"deviceManufacturer": "string",
"deviceModel": "string",
"userId": "string",
"registrantPlatformType": 0,
"regId": "string"
}
curl --location --request POST '/publish/subscribe' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSystem": 0,
"deviceSystemVersion": "string",
"deviceManufacturer": "string",
"deviceModel": "string",
"userId": "string",
"registrantPlatformType": 0,
"regId": "string"
}'
{}