分享
HTTP request (graphql)
GET /vsaas/api/v1/be?query=mutation+{deviceShare(device:String!,email:String!,credential:String!,permission:Int,description:String) String!}
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 'mutation {deviceShare(email:"[email protected]",device:"POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP",credential:"thisisacredential")}'Response
{
"data": {
"deviceShare": "ok"
}
}停止分享
Request
HTTP request (graphql)
GET /vsaas/api/v1/be?query=mutation+{deviceUnshare(device:String!,account:String!) String!}
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 'mutation {deviceShare(email:"[email protected]",device:"POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP",credential:"thisisacredential")}'Response
{
"data": {
"deviceShare": "ok"
}
}清空分享
Request
HTTP request (graphql)
GET /vsaas/api/v1/be?query=mutation+{clearDeviceShare(device:String!) String!}
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 'mutation {clearDeviceShare(device:"POIUYTREWQQWERTYUIOPPOIUYTREWQQWERTYUIOP")}'Response
{
"data": {
"clearDeviceShare": "ok"
}
}