Most voted "api" questions
API stands for Application Programming Interface. The program’s API defines the correct way for a developer to request services from that program. Use this tag to ask about API across the board. Always prefer more specific tags, such as win-api, file-api, web-api, google-api, google-maps-api-3. There is no need to use this tag in conjunction with a more specific one. This would bring confusion and work as a metatag
Learn more…1,192 questions
Sort by count of
-
0
votes2
answers565
viewsGet Header information, javascript
Good morning, I need to get the statuscode that returns in the header, after I run a POST , I would like to know a way to achieve this, using java script if possible what is the best way to get the…
-
0
votes1
answer372
viewsNumber of consultations held Nodejs
I would like to know the best way to get the number of requests made to a nodejs server since the last Restart. For example: Admin: Node index.js User: 127.0.0.1:3000/all User2: 127.0.0.1:3000/all…
-
0
votes2
answers4864
viewsRequest React Activate with Aces
I am trying to make a request with Axios for a server, and for that I need to send an access token. The token is correct, but nothing is loading on the network and the request is not working…
-
0
votes1
answer837
viewsPreview of Android Studio is not playing
I’m having problems importing a project that was written in an older version of Android Studio. My preview doesn’t appear. I’m a beginner and would like a little help! Follow Gradle and xml.…
-
0
votes1
answer102
viewsError using Fs.createReadStream('file') to save a file to a formData() in Node
Hello, I try to save a file inside a formData() in nodejs, but when I check, Fs.createReadStream('file') says that 0 bytes were read. Could someone explain to me why this is happening? And if…
-
0
votes1
answer196
viewsHow to get a refresh token in Jasmin using the Authorization Code Grant process
In the last step of the Oauth Authorization Code Grant process when asking for a access_token from the url https://identity.primaverabss.com/connect/token this is not returning the refresh_token as…
-
0
votes1
answer914
viewsUse return of one method in another method of the same class
I am working with The Guardian API, through two methods, search_content() and data_to_csv(), contained in the Theguardian class. The first method is responsible for searching The Guardian database…
-
0
votes0
answers111
viewsError in python API call - Jsondecodeerror
I’m making this call in a Mailchimp API, but it’s returning an error in json that I don’t know how to solve, can help me?? My code: import requests import psycopg2 key = 'KEY' url =…
-
0
votes0
answers27
viewsWhat to do with the authentication token when it arrives at the front?
I’m developing a site with Laravel on the server (API) and angular on the front. To authenticate a user in the system, I recover the credentials (email and password) and, if the user exists and the…
-
0
votes1
answer1077
views -
0
votes2
answers1031
viewsProblem when rendering image with React Native api wordpress
Speaks beauty guys, I’m doing tests extracting data from a wp api using React I can extract all the data but the image was not successful, I started a short time with React export default class App…
-
0
votes1
answer48
viewsIonic 3 consume api after build
Next I have an api running already, and I can make the requests quietly by Ionic serves using the Chrome extension allow access-control-allow-origin , and I have all the right answers , but when I…
-
0
votes1
answer509
viewsSyntaxerror Error: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data
I am trying to create an api in my application, but it is returning me the following error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data I’m using Zend Framework…
-
0
votes1
answer94
viewsHow to use HTTP GET APIS?
I have an API that performs object manipulation through a link, the parameters are passed on that link. I would like to know how I can use it or create a javascript method to run this link.
-
0
votes0
answers62
viewsReturns the error that title was not set
/*! SHOUTcast & Icecast Radio Player v1.1 (2/7/17) | (c) 2017, Danial Sabagh | http://danialsabagh.com | http://mersadesign.com */ (function ($) { "use strict"; …
-
0
votes1
answer118
viewsPython GIF API
is my doubt and the following I have this script where I type the name of the gif I want and it returns me several type of url of the size(width,height) of the randomly drawn gif, I wanted it to…
-
0
votes1
answer345
viewshow to manipulate an object inside an array in typescript
I use the last version of the angular, and I’m having a hard time passing a value to the field, follow details below I am pulling data from an api and sending in list to a select <option…
-
0
votes1
answer365
viewsHow to pass form parameter for an Laravel route in an API?
Errorexception in Urlgenerationexception.php line 17: Missing required Parameters for [Route: v1.clientes.search] [URI: v1/clients/search/{name}/{situation}]. (View: C: xampp htdocs api-updater…
-
0
votes1
answer393
viewsTake a variable from the url, pass method get Laravel
How do I get this function to take the values of the url passed by method get public function searchBy($nome, $situacao){ $params['nome'] = array('value'=>'%' . $nome . '%',…
-
0
votes2
answers8087
viewsConsuming API with javascript/jquery
I have to consume an IBGE javascript/jquery api Click here, but I don’t know how to make the filled input data join with the link https://servicodados.ibge.gov.br/api/v1/pesquisas/{researches}. Down…
-
0
votes1
answer1565
viewsSpring Boot - Changing object property names when returning JSON from the API
Good night to you guys! I have a Rest api created with spring boot + Hibernate and all that is right! Let’s imagine the following scenario: The data engineer created the database as follows…
-
0
votes1
answer666
viewsConsume API with Jquery and save to database
Good night! I am trying to consume an API using Jquery and Laravel. I created the route to access and save the data, access always returns me with status 0. web php.:…
-
0
votes1
answer361
viewsReact Native with PHP
Good night to you all! I have an app developed in React Native and I am consuming an API made in PHP, however the file of this API is in my machine, it is not in any server. When I upload my app to…
-
0
votes1
answer66
viewsHow to call a. php file function using Apache?
I’m trying to make an api and wanted to call different functions of the same php file. The way I managed to do, it works like this: <?php include("ClassVeiculos.php"); $Veiculos = new…
-
0
votes0
answers241
viewsHow to recover the tragos data in the api query in NODEJS
Good morning Galera. I am consuming an external api and am receiving the data as follows: { "place_id": "151508663", "licence": "Data © OpenStreetMap contributors, ODbL 1.0.…
-
0
votes1
answer68
viewsA Rest API is a combination of . EXE and . DLL’s?
I would like to know exactly how a Rest API works for the files that are part of it. See if my understanding is correct: When it is on the server, running, there will be a file. EXE running…
-
0
votes1
answer65
viewsA data request from another data must respond with 404 or an empty array?
I am working with an API which has the following route users/:id/documents. This route should return a list of documents from a specific user. For example: the route users/:id/documents return all…
-
0
votes1
answer145
viewsAngular asynchronous ng-repeat
I am using Angular 1.6.10 to show the data of an API, as the data search is asynchronous, I believe ng-repeat runs before the data is loaded: angular .module('appDataPOA', [])…
-
0
votes1
answer26
viewsI want to pass some data on $request in a way that does the same when you send something through the form
$data = $request->all(); $data['id_cliente']= $sistemas->id_cliente; $data['id_sistema']= $sistemas->id_sistema; $data['id_versao_atual']= $sistemas->id_versao_atual;…
-
0
votes1
answer41
viewsWhat’s the problem? Just return Undefined when I try to specifically access temp
var xhr= new XMLHttpRequest() var bot = document.querySelector(".botao"); bot.addEventListener("click", function(){ console.log('buscando...') …
-
0
votes3
answers425
viewsConsume api - Angular
Good night I’m consuming a film api at Angular. However I can not display in the template, the console.log is showing right, but I can not pass the value to template My Component : import {…
-
0
votes0
answers351
viewsError when viewing API in Angular
Good morning, I’m trying to access my API through the angular method get of the http module, my files are in my repository github in case anyone wants to take a look. I am following this tutorial…
-
0
votes1
answer330
viewsAuthentication on Laravel API routes
I’m conducting some tests in the construction of a API with Laravel. At the moment all URLS of API are with access without authentication. I am trying to allow after user authentication. In…
-
0
votes1
answer47
viewsData filtering by Url
In the code below I’m making a request to the Marvel api. const api = axios.create({ baseURL: `https://gateway.marvel.com:443/v1/public`, version: 'Cable', });…
-
0
votes1
answer1364
viewsHow to receive data in JSON (REST)
Hello, I am learning to program, I am in the 1 semester of development and I am being charged at work to learn how to do this, and I would like to know if what I did is right or not <!DOCTYPE…
-
0
votes1
answer480
viewsLaravel - Website Authentication and API
I am developing a Chat where it can be accessed both by the web and by an application, so I have done a project in Laravel with an api, both the site and the application will be fed through the api…
-
0
votes0
answers49
viewsI’m having trouble creating a public async method Task<Actionresult> Synchronous action method C# Web API
I am having this problem to create a method in the API does not recognize the Actionresult…
-
0
votes1
answer24
viewsHow to make changes on a usurious registered with the PUT method?
Hello I am learning Java, now in the back end I have set up a user registration API Email,Name,Age,Phone. I used the POST method to insert the new user in the array and GET to show the users, so far…
-
0
votes1
answer2377
viewsProblem picking query params in URL by Express
I’m creating a route GET which returns an item from a user array, but has no return when used req.query.id. When I use req.params.id right, but in that case I want to test for query string even.…
-
0
votes0
answers189
viewsWhy does the Google Maps API work in the APK release, but it doesn’t show the map in the APK loaded in the Beta open testing store?
In APK release key goes. In store APK does not show the map. Follow the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="br.com.blablabla.blablabla.android"…
-
0
votes2
answers44
viewsLoading Google Map
I want to link to a website I’m developing a Store API. I am using the following Google API - https://developers.google.com/maps/documentation/javascript/examples/marker-labels?hl=pt-br If I copy…
-
0
votes1
answer66
viewsDifficulty with Ajax Jsonp
I’m trying to consume an api through Ajax, but I get error while running it. var data2 = { resource_id: '1d7e45e5-b159-46a2-bdce-90393c7a8a2b', // the resource id limit: 5, // get 5 results q:…
-
0
votes0
answers13
viewsModify the VIDEO_CODE of the Youtube API without creating a new version of apk
I need to change this String VIDEO_CODE every day, because inside the app is a boot that leads to a live broadcast, I would have to do this without having to generate a new apk every day and…
-
0
votes0
answers330
views -
0
votes2
answers216
viewsError configuring Passport in Laravel
I have an API in Laravel and in it, I need to authenticate the access requests. So, I used Passport Laravel, only according to the return of the API, there is some definition that I did not inform…
-
0
votes1
answer57
viewsPerformance issues with Asp.Net Core 2.1?
I have an API written in Asp.Net Core 2.1 and I have some performance problem, I am not able to understand if the problem is in the code or the server. The problem boils down to the following, I…
api performance iis entity-framework-core asp-net-coreasked 4 years, 1 month ago Renner Oliveira 23 -
0
votes0
answers56
viewsNullpointerexception Modelmapper
I’m using Modelmapper, I created a Mapper class where I have some methods that converts dto to a model and vice versa, it turns out I’m getting a nullPointerException when using these methods of the…
-
0
votes0
answers24
viewsAsync Live API
Can an API in Flask that fetches the live games from a website and returns them. However, this search takes about 40 seconds to be done (getDados() function), but I would like the user to receive…
-
0
votes1
answer73
viewsHow to take a value inside an array with PP
I have an API with some information and I want to get the Genre: Samba/Pagode stdClass Object ( [id] => 46484422 [title] => Raça Negra e Amigos II (Ao Vivo) [upc] => 7891430177379 [link]…
-
0
votes0
answers44
viewsSend a data to the database with Node js
I am creating a REST API, but with difficulty in sending a data to the database using 3 modules, let me show my code rotaCliente.js on this route I receive a json with email,name,password and Cpf…