简体中文

设备分享:接受分享

接受分享

Request

HTTP request (graphql)

GET /vsaas/api/v1/be?query=mutation+{acceptSharedDevice(device:String!) String!}
POST /vsaas/api/v1/be/ 

参数

Header

Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json

Required

参数
类型
必选
说明
device
String
设备uid
 

Response

参数
类型
说明
acceptSharedDevice
String
ok or error信息

Code

200
400
401

例子

Request

curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {acceptSharedDevice(device:"QPWOEIRUTYT")}'

Response

{
    "data": {
        "acceptSharedDevice": "ok"
    }
}

拒绝分享

Request

HTTP request (graphql)

GET /vsaas/api/v1/be?query=mutation+{rejectSharedDevice(device:String!) String!}
POST /vsaas/api/v1/be/

参数

Header

Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json

Required

参数
类型
必选
说明
device
String
设备uid
 

Response

参数
类型
说明
rejectSharedDevice
String
ok or error信息

Code

200
400
401

例子

Request

curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {rejectSharedDevice(device:"QPWOEIRUTYT")}'

Response

{
    "data": {
        "rejectSharedDevice": "ok"
    }
}

移除分享

Request

HTTP request (graphql)

GET /vsaas/api/v1/be
?query=mutation+{removeSharedDevice(device:String!,description:String) String!}
POST /vsaas/api/v1/be/

参数

Header

Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json

Required

参数
类型
必选
说明
device
String
设备uid
description
String
描述

Response

参数
类型
说明
removeSharedDevice
String
ok or error信息

Code

200
400
401

例子

Request

curl --location --request POST 'domain/vsaas/api/v1/be/'\
--header 'Authorization: Bearer token'\
--header 'Content-Type: application/json'\
--data-raw 'mutation {removeSharedDevice(device:"QPWOEIRUTYT")}'

Response

{
    "data": {
        "removeSharedDevice": "ok"
    }
}

查询分享设备

Request

HTTP request (graphql)

GET /vsaas/api/v1/be?query={getSharedDevices {uid,udid,nickname,credential,owner,deviceType}}
POST /vsaas/api/v1/be/ 

参数

Header

Authorization : JWT or Bearer {access token}
The access token.
Content-Type : application/json

Required

参数
类型
必选
说明



 

Response

参数
类型
说明
data
json object

Code

200
400
401

例子

Request

curl --location --request POST 'domain/vsaas/api/v1/be/' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw 'query {getSharedDevices {uid,udid,nickname,credential,owner,deviceType}}'

Response

{
    "data": {
        "getSharedDevices": [{
            "credential": "thisisacredential",
            "nickname": "KGGJYP",
            "owner": "jerry_yang@tutk.com",
            "udid": "POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP",
            "uid": "POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP"
        }]
    }
}


即刻开启您的物联网之旅

联系解决方案专家
Kalay App
解决方案
新闻动态
公司动态
行业资讯
媒体报道
永续发展
经营者的话
社会参与
环境永续
公司治理

+86 755 27702549

7×24小时服务热线

法律声明 隐私权条款

关注“TUTK”

TUTK服务尽在掌握

© 2022 物联智慧科技(深圳)有限公司版权所有粤ICP备14023641号
在线咨询
扫一扫

TUTK服务尽在掌握

全国免费服务热线
+86 755 27702549

返回顶部