long ll_return
RestClient lnv_RestClient
lnv_RestClient = Create RestClient
// Set DataObject
dw_1.DataObject = "d_sq_gr_emp"
// Send request using GET
ll_return = lnv_RestClient.Retrieve(dw_1, "https://demo.appeon.com/PB/webapi_client/employee/102")
// Check the return value
if ll_return >= 0 then
MessageBox("Success", "Rows = " + String(ll_return))
else
MessageBox("Error", "Failed to retrieve data.")
end if
我直接把上面例子网址用浏览器打开,有json数据,有一行,怎么我建立对应datawindow,用上面代码,不能在dw中检索收到数据,谢谢请教
你可以参考RESTClient object的SendPostRequest的方法看看是不是你想要的
https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s04s694.html
DW 导出Json可以参考如下方法:ExportJson and ExportRowAsJson