获取最新配置
开发中
POST
/api/v1/things/product/remote-config/lastest-read
iThings-apisvr/物联网相关接口/产品/远程配置
请求参数
Header 参数
iThings-token
string
可选
示例值:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
productID
string
产品id
示例
{
"productID": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/product/remote-config/lastest-read' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"productID": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
data
object
必需
productID
string
产品id
content
string
配置内容
createdTime
string
更新时间
示例
{
"code": 0,
"msg": "success",
"data": {
"productID": "string",
"content": "string",
"createdTime": "string"
}
}

扫码加入 iThings微信交流群

