Post Closed
63
Views
9
Comments
Unable to consume this API
Application Type
Reactive

Hi Community,

I am new to outsystems I am unable to consume one API it is showing me in HTML format .

Can someone help me to understand how it works here in outsystems.I have gone through documentations and various forum posts but getting in same format.

Please ping me personally will share the API details.


Thank you.







2024-12-02 13-16-47
Vipin Yadav

Hi @Sanji San,

It seems like you are trying to consume an API  but the response is coming back as HTML instead of the expected format (like JSON or XML).

Ensure you are consuming the correct endpoint of the API.

Test the API using tools like Postman or curl to confirm it returns the expected format (e.g., JSON).

I have provided the post link below, which might help resolve your issue.

https://www.outsystems.com/forums/discussion/47959/html-to-json/

Thanks,

Vipin Yadav 

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Sanji San

I try the deriv Explorer API to get Active symbol but it give the response in form of HTML which is basically the Home page of deriv API.

Read the document and try to hit the correct endPoints.

Regards ,
Rajat

2016-04-22 00-29-45
Nuno Reis
 
MVP

That address is for the test page. It is HTML so humans can use it.

After you register, you get all the URLs you need.

UserImage.jpg
Sanji San

Hi Nuno,
Thank you for replying.

I have registered and created new account but still it is showing the same page unable to get the proper endpoints.

2024-09-17 12-24-07
Rammurthy Naidu Boddu
Champion

Hi, 

Please share the API endpoint if not having any secure content so that will consume and test it and share oml file to you. 

UserImage.jpg
Sanji San

Hi All,

Actually it's not an API it's a webSocket which we need to use for consuming the data.
So does anyone have any idea or supported plugin used to consume data from websocket


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Sanji,

OutSystems does not support websockets. You'll need to build something outside OS, and interface with that, if you want to use them.

UserImage.jpg
Sanji San

Please take a look at this .oml file

TestApp.oml
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Sanji,

Unfortunately, we're delving into non-OS territory now. Accessing websockets via JavaScript has little to do with OutSystems. I'd advise you to ask on a different forum, like Stack Overflow. I'm going to close this topic now.