Questions tagged as 'api'

1
answer

SQL statement in MySQL with CURDATE (), does not display API result with PHP

In this SQL what is wrong? SELECT top.id_topatletas, top.idusuarios, top.posicao, top.workout, top.data_inicio, top.data_fim, user.idusuarios, user.nome FROM top_atle...
asked by 03.09.2018 / 16:25
2
answers

response () in XML with Laravel

I have studied about the development of APIs with Laravel, a quick question, is it possible to return an XML instead of a json? instead of doing: return response()->json($json); Do something like: return response()->xml($xml);...
asked by 24.07.2018 / 16:07
1
answer

consume api rest with react and render the data in a table

My code: import React, { Component } from 'react' import axios from 'axios' import PageHeader from '../template/pageHeader' import cadastroForm from './cadastroForm' import cadastroList from './cadastroList' const URL = 'http://localhost:300...
asked by 04.05.2018 / 15:45
2
answers

Search DDD by city [closed]

I'm making an application that has phone numbers. To make life easier for users, I would like to return the DDD that is not in some numbers. Someone knows some API, or something like that to return the DDD according to the city.     
asked by 23.12.2017 / 21:06
1
answer

Problems making a call using Retrofit on Android

I am a student and I have difficulty understanding where I am going wrong in a job that the teacher has passed. Describing briefly, the teacher provided an API in GitHub, which after completing the installation we can add products, suppliers and...
asked by 07.11.2017 / 07:48
1
answer

Uncaught TypeError: Can not read property 'NAME' of undefined

I have a problem that is killing me ... I'm trying to get the API to be able to get the API data in the table, and it will give the error: Uncaught TypeError: Can not read property 'NAME' of undefined. And this "NAME" is an array that has in the...
asked by 26.10.2017 / 15:30
1
answer

API to get image from a search engine

I will have to add a function in the site I am working on that the user will search by name for images on some web finder (this can be Google, Yahoo, Bing and etc.) and the images found will be listed in a div which it can select and it can be u...
asked by 11.09.2017 / 22:33
1
answer

Undefined offset in repeat loop in PHP

I'm using the twitch.tv API. I'm getting all the lives from "fifa17" and listing all the channel names that are doing this live with this game, the URL has 100 results limit ie 100 names, I made a for to list all the names, for...
asked by 27.04.2017 / 03:50
2
answers

httpget + URI + HttpClient discontinued libraries. How to update code?

I need to access the Panoramio API to get some images based on the coordinates I've sent. However, I'm having trouble receiving the JSON value. After several searches, all indicate identical code, but the libraries used are discontinued....
asked by 02.09.2016 / 20:34
1
answer

Consume REST API in Node.js + cURL

I know there are several packages in Node to consume REST API but I need some packages that use cURL . For some reason (which I did not discover) I can not authenticate with existing ones. I've tried link and link .   ...
asked by 11.11.2015 / 10:27