Questions tagged as 'api'

1
answer

Automatically place date and time in HTML table

How can I automatically set a date and time on my html table? Doing for js. I created a table by js and inserted it in my API data, only that data goes to the TD part of the table, and I need to put the date and time it was inserted, and I ha...
asked by 06.11.2017 / 16:48
0
answers

API with JavaScript (like showing the api data without having to click the link)

I made an image with a link, then when I click on this image the api data goes to the table I created, but it only goes when I click on the image, how can I change it to show as soon as I load the page? p>     
asked by 30.10.2017 / 15:23
3
answers

How do I display the API JSON?

After performing this, I came across this error, which did not display API information. Being that in another URL of a similar API the code displayed and worked perfectly. API URL: link $.ajax({ type: "POST", dataType: "JSON",...
asked by 30.10.2017 / 17:00
1
answer

node assync function does not return data

index.js: $.ajax({ type:'POST', url: 'http://localhost:3000/login', dataType: 'application/json', data: {username: username, password: password} }) .done(data => { console.log(data); }); on my a...
asked by 22.10.2017 / 00:16
1
answer

API Lomadee, Buscape

I'm having trouble integrating with the Lomadee platform API. When I get Json containing the partner products I want to display, many images are not available! Here is the page I'm developing: Lomadee Unfortunately, I can not remove t...
asked by 08.11.2017 / 12:06
0
answers

How to properly verify the existence of a user in a RestFul API (Nodejs) by sending Login and Password in a GET verb?

Verifying the existence of a user through a RestFul API would be a GET transaction given that it would only be a select. In short, you would be sending the Login and Password in this way: const validator =require('validator'); app.get('/use...
asked by 17.10.2017 / 16:42
1
answer

How to make a call on an API response

I'm working on this codepen . My goal is to create variable responses according to the temperature and the climate of the place. Example: Clear sky and neighborhood 1 is response X, rain and neighborhood 2 is answer Y. I am learning PHP, howeve...
asked by 17.10.2017 / 14:53
1
answer

Status Return Javascript or PHP API MercadoPago

I would like to know what to do at the time that I am getting the payment array from the paid market API. I implemented the server-side status response (in PHP), according to the returns presented in MarketPage documentation . The complete p...
asked by 10.10.2017 / 14:27
1
answer

req.body is coming empty when calling api in postman and application

I'm trying to use an api in nodejs but I can not pass the parameters the req.body is empty and I can not identify the problem var express = require('express') var app = express() var bodyParser = require('body-parser') var core_use = requir...
asked by 20.10.2017 / 00:50
1
answer

Is there any way to shorten the process time of requesting Api with PHP?

Use post api to calculate freight via ajax and other financial api for tickets and transactions, but it takes a lot of page load to create a transaction     
asked by 21.09.2017 / 17:03