API return response as HTML. How to read? (2 replies)
Murni Y,
If you know the invoice that you want to retrieve from the service. There are a series of functions that are available to be able to do that. However Iman cannot parse these individual lines from the Html. You can only retrieve the invoice and save it somewhere in Html format.
Dim Url Dim Base64Invoice Dim DecodedContents Dim InvoiceFilePath Url = "https://www.service.com/invoices/" + %invoiceId Base64Invoice = WebserviceGetText(URL) DecodedContents = Base64DecodeText(Base64Invoice) InvoiceFilePath = "c:\invoices\" + %invoiceId & ".html" WriteTextFile(InvoiceFilePath, DecodedContents)
These are the different links for the functions that we have used
Dear support, is there any way to read HTML page? I want to pull invoice details from an e-Commerce API service but the returned value will be in HTML format and encoded with base64.