获取通知
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
Response
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" }] } }