For Proprietary PTU flow:
1. Send SDL.GetURLS
after SDL-initiated BC.PolicyUpdate with service type 7
2. Use the received URL(s) in the next BC.OnSystemRequest.
Request the URL(s) for any known service type that exists in Local PT at any time if required per internal flows.
SDL.GetURLS
dependencies:
BC.PolicyUpdate
only in case it's built with "-DEXTENDED_POLICY: PROPRIETARY" flag or without flag. "endpoints"
section.appID
+ url
pairs in response url
only.Name | Type | Mandatory | Additional |
---|---|---|---|
service | Integer | true | minvalue: 0 maxvalue: 100 |
Name | Type | Mandatory | Additional |
---|---|---|---|
urls | Common.ServiceInfo | false | array: true minsize: 1 maxsize: 100 |
{ "id" : 176, "jsonrpc" : "2.0", "method" : "SDL.GetURLS", "params" : { "service" : 7 } }
{ "id" : 176, "jsonrpc" : "2.0", "result" : { "urls" : [ { "url" : "https://policies.smartdevicelink.com/api/1/policies", "appID" : 65782 } ], "code" : 0, "method" : "SDL.GetURLS" } }
{ "id" : 176, "jsonrpc" : "2.0", "error" : { "code" : 11, "message" : "Invalid data", "data" : { "method" : "SDL.GetURLS" } } }