Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

GetActiveServiceConsent

Type
Function
Sender
SDL
Purpose
Request user consent to activate an app service

Request

Must
  1. Prompt user to activate service with serviceID
  2. Respond with the result from the user in the activate parameter

Parameters

Name Type Mandatory Additional
serviceID String true

Response

Parameters

Name Type Mandatory Additional
activate Boolean true

Sequence Diagrams

Example Request

{
   "id": 1000,
   "jsonrpc": "2.0",
   "method": "AppService.GetActiveServiceConsent",
   "params": {
      "serviceID": "service_id"
   }
}

Example Response

{
   "id" : 1000,
   "jsonrpc" : "2.0",
   "result" : {
      "activate" : true,
      "code" : 0,
      "method" : "AppService.GetActiveServiceConsent"
   }
}

Example Error

{
   "id" : 1000,
   "jsonrpc" : "2.0",
   "result" : {
      "code" : 13,
      "message" : "No known service with given ID",
      "data" : {
          "method" : "AppService.GetActiveServiceConsent"
      }
   }
}
View on GitHub.com
Previous Section Next Section