I think you should you need to access the content of the URL within your validationLoaded handler. You can do this by using the libURLData function, which retrieves the data returned from the URL once it has been loaded successfully.
Here’s how you can modify your validationLoaded handler to get the page data:
Here’s how you can modify your validationLoaded handler to get the page data:
CODE:
livecodeon validateAPI put "https:// www. sample. com/v1/accounts/" into tURL load url tURL with message "validationLoaded"end validateAPIon validationLoaded pURL, pURLStatus if pURLStatus is "cached" or pURLStatus is "success" then ## LiveCode has successfully loaded the URL content. put libURLData(pURL) into tData answer "Result: " && tData ## Remove URL from cache if you are all done with it. unload url pURL else put libURLErrorData(pURL) into tError answer "Error: " && tError end ifend validationLoaded
Statistics: Posted by helenecrane — Tue Jan 14, 2025 8:16 am