Skip to content

Tag: api

Callback error when calling endpoint function

I’ve received an Node.js api documented with swagger for debbuging. I also have to make some features in it, but I’m having some trouble when calling, in the code, the functions executed when you hit an specific endpoint. To make my self clear: Works fine from Swagger UI when I only give it the ar…

How to Display plain text of api result ( noob question )

I am completely new to api. I want to display the plain text response of the output of this: https://vurl.com/api.php?url=https://google.com to my webpage html but it’s not working. My code: Thanks Answer Not really sure why you’re mixing javascript with your php code. Nevertheless, this is the ap…

API: Ajax post in Laravel – 403 (Forbidden)

I’m getting 403 forbidden during ajax call. This is happen only if the ajax is on app.js. If I remove from app.js and put to index.blade.php, is working perfectly. How can I make it working also on my app.js? I’ve searched a lot, and found I needed to add this $.ajaxSetup({ headers: { ‘X-CSR…

API accessing certain values from data with JavaScript

I have the following API Data: And here is my code with a fake API code: All I would like to do is get the changesPercentage and display it on my webpage with HTML and CSS. I will have various data from different companies, so a versatile solution would be very helpful. Answer You’re trying to get chang…