Xiaomi · Example Payload

Xiaomi Get User Profile Example

Consumer ElectronicsIoTSmart HomeMobileArtificial IntelligenceCloud StorageMachine Learning

Xiaomi Get User Profile Example is an example object payload from Xiaomi, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "https://open.account.xiaomi.com/user/profile",
    "parameters": {
      "clientId": 123456789,
      "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
    },
    "headers": {
      "Content-Type": "application/json"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "result": "ok",
      "description": "success",
      "data": {
        "nickname": "JohnDoe",
        "miliaoId": 9876543210,
        "avatarUrl": "https://account.xiaomi.com/avatar/9876543210.jpg"
      }
    }
  }
}