简体中文

[被分享者]设备分享:获取通知

获取通知

Request

HTTP request (graphql)

GET /vsaas/api/v1/be?query={getNotifications(all:Boolean) [Notification]!}
POST /vsaas/api/v1/be/ 

参数

Header

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

Required

参数
类型
必选
说明
all
bool

 

Response

参数
类型
说明
data
json object

getNotifications
json array
pk : String
notification id
sender : String
sender id who create the notification
senderName : String
sender name
senderEmail : String
sender name
senderPhone : String
sender name
receiver : String
the receiver id
receiverName : String
the receiver name
receiverEmail : String
the receiver email
receiverPhone : String
the receiver phone
purpose : String
purpose may be udid or something.
purposeDetail : String
purpose detail.
description : String
description of the notification
type : String
DeviceSharing

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 {getNotifications {sender,senderName,receiver,receiverName,type,description,pk,purpose,purposeDetail}}'

Response

{
    "data": {
        "getNotifications": [{
            "sender": "5dc3c96edd188dd0ce4e3976",
            "data": "thisisacredential",
            "description": "jerry_yang@tutk.com want to share device : KGGJYP with you.",
            "pk": "5fe1be9f21d016afe3d80369",
            "purpose": "POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP",
            "receiver": "5fe190807f5a7abd27220461",
            "type": "DeviceSharing"
        }]
    }
}


即刻开启您的物联网之旅

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

+86 755 27702549

7×24小时服务热线

法律声明 隐私权条款

关注“TUTK”

TUTK服务尽在掌握

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

TUTK服务尽在掌握

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

返回顶部