Back to forum list… Back to How Do I?...

API return response as HTML. How to read? (2 replies)

Murni Y
3 years ago
Murni Y 3 years ago

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.

Erica Malcolm
3 years ago
Erica Malcolm 3 years ago

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)

Erica Malcolm
3 years ago
Erica Malcolm 3 years ago

These are the different links for the functions that we have used

WebserviceGetText

Base64DecodeText

WriteTextFile

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close