Skip to content

User Message Type Statistics

API Address:/v2/mobilepush/enduserapi/v2/getMsgStats

Request Method:GET

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

API Description:Statistics of user message types (system, smart, device)

Request Parameters:

None

Response Status:

Status CodeDescriptionSchema
200Successfully retrieved user message type statisticsRegistration code response data«UserMsgTypeV2Dto»
5106Please enter token

Response Parameters:

Parameter NameParameter DescriptionTypeSchema
codeResponse status codeinteger(int32)integer(int32)
dataResponse dataUserMsgTypeV2DtoUserMsgTypeV2Dto
  deviceDeviceDeviceMsgNumberDeviceMsgNumber
    faultMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    informMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    readinteger
    unReadinteger
    warningMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
  smartSmartSmartMsgNumberSmartMsgNumber
    automationMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    readinteger
    sceneMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    unReadinteger
  systemSystemSystemMsgNumberSystemMsgNumber
    privacyPolicyRevisionMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    readinteger
    serviceAgreementRevisionMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    smsWarningMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
    unReadinteger
    voiceWarningMsgIsReadDtoMsgIsReadDto
      readRead message countinteger
      unReadUnread message countinteger
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": {
		"device": {
			"fault": {
				"read": 0,
				"unRead": 0
			},
			"inform": {
				"read": 0,
				"unRead": 0
			},
			"read": 0,
			"unRead": 0,
			"warning": {
				"read": 0,
				"unRead": 0
			}
		},
		"smart": {
			"automation": {
				"read": 0,
				"unRead": 0
			},
			"read": 0,
			"scene": {
				"read": 0,
				"unRead": 0
			},
			"unRead": 0
		},
		"system": {
			"privacyPolicyRevision": {
				"read": 0,
				"unRead": 0
			},
			"read": 0,
			"serviceAgreementRevision": {
				"read": 0,
				"unRead": 0
			},
			"smsWarning": {
				"read": 0,
				"unRead": 0
			},
			"unRead": 0,
			"voiceWarning": {
				"read": 0,
				"unRead": 0
			}
		}
	},
	"extMsg": "",
	"msg": ""
}