Home / Docs Center / Platform API / Online Status Notification

Online Status Notification

Platform API · General API

Project: Platform API | page_id: 1079

[TOC]

Brief Description
  • Send a status notification when the device goes online or offline
Request URL
  • Provided by the customer
Request Method
  • POST
  • Content-Type: application/json; charset=utf-8
URL Parameters
Parameter Name Required Type Description
token Yes string Verification token
t Yes number Current timestamp, in seconds
Body Parameters
Parameter Name Required Type Description
id Yes string Device serial number
status Yes number Device status: 0 offline, 1 online
Request Body Example
  {
    "data": [
    {
      "id": "productId1",
      "status": 0
    },
    {
      "id": "productId2",
      "status": 1
    }]
  }
Return Example
  {
    "code": 0,
    "msg": ""
  }
Return Parameter Description
Parameter Name Type Description
code number Error code, 0 means success, >0 means failure
msg string Failure message
Notes
  • You can choose whether to verify the token; just focus on the body data
  • Contact our staff to configure the callback address
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.