How can I use SDK or RESTfulAPI to retrieve the SPL definition inside a panel of a dashboard?
I finally find the answer. When using the SDK to get the dashboard data,
GET data/ui/views/{name} method detail
We can get the eai:data (xml definition for the dashboard) and the SPL will be inside the xml. Have to go deeper level of xml.