设备注册激活(第二步)
# Device registration activation
**Brief description**:
- Be careful⚠️: The equipment will not be generated on June 16, but will be generated on June 17
- Some data can be set only with equipment. At the same time, the collection service also needs equipment
- If the call generation fails, you can generate multiple times; Do not call concurrently
- Test package must contact customer service
**RequestURL**:
- {APIURL}/dy/device/register
**Request mode**
- POST
**Request Headers**
- Content-Type:multipart/form-data
- Access-Token: Value returned by the application authorization interface
**Parameter**:
|Parameter name | required | type | description
|-|-|-|-|
Nothing
**Return data**:
|Parameter name | type | description|
|-|-|-|
|code|int|0success, -1 failure 1 prompt message|
|msg|string|feedback information|
|data|json| Need at least local save device_id|
**This interface can be called once, and the token authentication information will never expire**。~
**Request parameter example**
```
{
}
```
```{
"code": 0,
"data": {
"ip": "",
"proxies": {
"http": "socks5://xxx:1",
"https": "socks5://xx:1"
},
"version_name": "19.4.0",
"version_code": 190400,
"manifest_version_code": 190401,
"update_version_code": 19409900,
"gen_time": "2022-05-13 16:55:33",
"_gen_time": 1652432133000,
"start_time": 1652431173.854993,
"start_time_ts": 1652431173,
"start_time_tk": 1652431173854,
"apk_first_install_time": 1649361333000,
"first_install_time": 1652432136,
"verify_ticket": "",
"data_user_ts_double": 3212929610,
"apk_install_path": "/data/app/com.ss.android.ugc.aweme-KRvkbnv67JCWUoF6CPGZ+Q==/base.apk",
"v56_ts": 3212927894,
"sdi_v12_uuid": "53f3d168-fb68-4660-884e-4502f8dc9c2e",
"ri_uuid": "07f4a478-aa53-4e06-b2d4-bbab3f86cdfe",
"sdi_token_first": "x..",
"sdi_token_second": "x",
"act_token": "",
"act_base": "",
"act_data": "",
"device_platform": "android",
"device_brand": "google",
"device_type": "google",
"os_version": "9",
"os_api": 28,
"channel": "wandoujia_lesi_1128_1108",
"user_agent": "com.ss.android.ugc.aweme/xxx (Linux; U; Android 9; zh_CN; xxxx; Build/PQ3A.190801.002; Cronet/TTNetVersion:28eaf52b 2021-12-28 QuicVersion:xxx 2021-08-12)",
"language": "zh-Hans-CN",
"language2": "zh-Hans_CN",
"region": "CN",
"app_language": "zh",
"app_name": "aweme",
"app_version": "19.4.0",
"display_name": "抖音",
"package": "com.ss.android.ugc.aweme",
"aid": "1128",
"ac": "WIFI",
"language_region": "zh_CN",
"tz_name": "Asia/Shanghai",
"tz_offset": 28800,
"timezone": 8,
"resolution_width": "1440",
"resolution_height": "2621",
"resolution": "1440x2621",
"display": "1440x2621",
"mcc_mnc": "46011",
"dpi": "560",
"device_id": "xxx",
"install_id": "xx",
"device_token": "xxx",
"clientudid": "b606ea0b-dc80-40d5-926c-04bea5347d2f",
"openudid": "xxx",
"cdid": "xxx",
"oaid": "xx",
"uuid_str": "xxx",
"device_unique_key": "x+8nPfPdrELhlqun0gc08=",
"cookie_str": "",
"cookie_js": {},
"room_id": "",
"mac_address": "55:11:0f:1e:30:5b",
"sdk_version": "3.6.0-rc.6.1-bugfix",
"passport_sdk_version": "20356",
"default_time_out_time": 20,
"internal_ext": "",
"cursor": "",
"req_ip": "192.168.1.42",
"build_serial": "8c02b173",
"serial_number": "8c02b173",
"req_id": "xx",
"iv": "a7afb24947a649d0",
"key": "xx",
"rom": "5670241",
"rom_version": "PQ3A.190801.002",
"session_key": "",
"account": null,
"account_activate": "",
},
"msg": "Device registration succeeded."
}
```
**Error return example**
```{
"msg": "Call failed",
"code": -1,
"data": null
}
```