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
-
1
votes2
answers1018
viewsApi Climatempo C#
Good afternoon, I am making a web application for college where I need to consume a C#Climatempo API, in my code, I am passing as parameter the code of the city and making the request for the:…
-
1
votes1
answer121
viewsHow to resolve "An Attributevalue may not contain an Empty string"?
Hello, I am doing some simple tests for integration of the API Gateway with Dynamodb, at this moment I can do a GET and POST using POSTMAN and GET in python, but I cannot do the POST in Python, I…
-
1
votes0
answers596
viewsPassing simple array with Axios
Goodnight. I’m trying to replicate an API call that I make in Postman in Windows of my Vue.js application. In Postman I pass a token and in my JSON call body I pass the following simple array to…
-
1
votes1
answer1073
viewsSlim Framework 4 with Eloquent ORM
I am using the Slim-Framework in version 4 for api creation and would like to use together Eloquent to facilitate manipulation with the database. But I couldn’t find any material/example of how to…
-
1
votes1
answer99
viewsHow to make the Return Ok<Object> take multiple arguments
Good afternoon guys, I would like to ask you a question, I am creating a method within a webapi in Asp.net mvc to receive some data from the launch of a home visit, but I’m having an error in Return…
-
1
votes0
answers68
viewsSomeone could tell me why the Google Maps API is not generating the map in android studio 3.5
Code of the Homefragment public class HomeFragment extends Fragment implements OnMapReadyCallback { public HomeFragment(){ // Required empty public constructor } GoogleMap mMap; @Nullable @Override…
-
1
votes1
answer820
viewsI am unable to send a parameter to a GET method of an API using the PHP Curl
Hello, I am trying to use Curl to consume an API where there is a method that receives a string as parameter. This method in the API is configured as GET, so it will receive this parameter validate…
-
1
votes0
answers98
viewsProblems accessing external C#API
I am trying to access the Pagseguro API to view the account balance but the following error appears. (I deleted my email and token in the print as well as in the code below). Document print: Code on…
-
1
votes0
answers105
viewsAutomate express response function (res.send())
I have an express api and would like to develop a function to standardize the customer response. Code (running the function): response(200, "Evento adicionado com sucesso!", res) Scope of function:…
-
1
votes0
answers36
viewsPeolple API - Error 429 RESOURCE_EXHAUSTED
I’m wearing the following package to store contacts in the service provided by Google, that is to say, Google Contacts. Requests of the type GET They work perfectly and I can extract the contacts…
-
1
votes0
answers27
viewsHttparty returns 502 but Postman execution works
I do some APIS testing with httparty and use Postman for smoke testing. When I call the same process in my ruby class, using httparty, it gives me 502, if in seconds I run on Postman, it gives me…
-
1
votes1
answer81
viewsLogin enters directly via google
Good morning! I used the google login API on a website page. It takes the information and works correctly, however, even without clicking the button, it already runs the js of google directly,…
-
1
votes0
answers318
viewsHow to hide error message coming from an API using Ajax, Fetch or Axios
Good evening guys, I’m beginner with Javascript, and I’m developing the functionality of a CRUD, I want to use the correct HTTP verbs for each function (Obs: I know that using the HTTP verbs is only…
-
1
votes1
answer1340
viewsSending body parameter via fetch API
I am trying to send a request asynchronously via javascript to the backend in Node, follow the front code: if ( window.location.pathname.indexOf('/') != - 1 ||…
-
1
votes1
answer637
viewsHow to access data in json and save to a variable in python? flask-api
I am making a very simple Flask Api, I will receive a title and a body in json.. { "title":"Test", "body":"test" } My app.py class is like this from flask import Flask, request, jsonify, json app =…
-
1
votes3
answers1361
viewsC# Manipulate Postasync Response
I have the following code: string json = new JavaScriptSerializer().Serialize(new { email = textBoxLogin.Text, password = textBoxSenha.Text }); using (var client = new HttpClient()) { var response =…
-
1
votes2
answers1558
viewsPossible Unhandled Promise Rejection (React Native (HOOKS))
I am trying to call the API but is returning the warning error: "Possible Unhandled Promise Rejection". There are similar questions, but none specific to React Hooks from what I’ve seen. Follow the…
-
1
votes1
answer303
viewsHow to return a value instead of a [Object Promise]
I have this code and want to return the string not to Promise, but I do not know how exactly to do, I tried to look at other solutions on the site but I could not apply them in my code. (I’m using…
-
1
votes1
answer56
viewsHow to call a function within function?
I’m developing a API, and in it I need to implement a method that seeks within my database a film through your ID. As I will use this method to perform more than one time, I would like to reuse it…
-
1
votes0
answers21
viewsASP.NET Core API for access to more than one Angular Apication
I have an API that when launched, it goes up at the following address: http://localhost:49013/api/values. I realized this is parameterized in the file launchSettings.json, that is like: {…
-
1
votes2
answers171
viewsWrite JSON to Javascript object
I have an API in php that returns data like this: {"status":"sucesso","dados":[{"id":"1","nome":"Nome do Usuario","etc..":"etc.."},{"id":"2","nome":"Nome do Usuario","etc..":"etc.."}]} I need to…
-
1
votes1
answer63
viewsHow to get the generated url when accessing the instagram photo link using /media/? size=l at the end
I’m trying to get the url that is displayed (switched) when accessing a link as for example on instagram https://www.instagram.com/p/B9MjyquAfkE/media/? size=l, the link generated after the click,…
-
1
votes3
answers671
viewsConsume an API that requires authentication with Laravel
I’m creating an application with Laravel, which consists of consuming the Mcafee API. The previous version was built in pure php, from which it consumed the data of a Mysql database powered by a…
-
1
votes2
answers454
viewsError when creating a bank with Sequelize
Opa, I am creating a Rest API in Nodejs and using Sequelize as ORM only when I try to use the db:create command of the sequelize to create the database, it returns me this error: ERROR: Dialect…
-
1
votes1
answer103
viewsHow to access json Response fields in nodejs?
I’m studying a little bit about nodejs and am facing difficulties to capture and access json Sponse, For example: My Getbyid exports.getProduto = function(req, res) { const produtoId = req.params.id…
-
1
votes1
answer141
viewsHow to make a Soap call on . Net Core
I am trying to consume an external service that receives an xml Soap, but always returns error 500 (Internal server error). But if I test via SOAPUI works normally. I have tested several types of…
-
1
votes2
answers835
views -
1
votes0
answers36
viewsAdd Endpoint to the web application
How to use Endpoint in a web application that consumes the API created with Microsoft Custon Voice. index.html <!DOCTYPE html> <html> <head> <title>Microsoft Cognitive…
-
1
votes0
answers69
viewsJS WEB Audio API getByteFrequencyData() range
I’m using Analysernode to analyze the intensity of each frequency of a sound, so I can make a viewer. The problem is that the analyser.getByteFrequencyData() returns the intensity of frequencies…
-
1
votes2
answers41
viewsObject map does not return all data
I’m trying to pass a map on an api that should print videos on a website. When he finishes making the map he is not taking the videos of the next category and populating the object. I created the…
-
1
votes1
answer48
viewsAngularjs: Request $http to consume the domain’s external API giving error
I have an Angularjs application that logs in. I am trying after logging in, requesting an API that I am running on my machine running in C# to at least be able to communicate with it. But it made…
-
1
votes1
answer195
viewsPhp json: Take specific values from an API in Json and display them through a php script
I am working with an API and would like to "get" some values of the same as this in JSON format. At first I researched some questions similar to mine, but unfortunately I still could not find a…
-
1
votes1
answer37
viewsAPI request at Angular
Next, I’m not getting a request for an api, a get. Follow the api’s code and answer. User model.: export interface ResponseUsers { data:User; } export interface User { id: number; nome: string;…
-
1
votes1
answer86
viewsHow do I return a req.body.variable in a Express Rest api in a POST method?
When I try to return one req.body.qualquerVariavel acquired through a POST method, the return is undefined, and if I put the API to show on the console, it shows the value correctly, I wanted to…
-
1
votes1
answer28
viewsError when displaying contents of a mysql BD via a PHP API
When creating an API for later consumption I get this error: Fatal error: Uncaught Error: Call to a Member Function prepare() on string in C: wamp64 www React test with API full src api…
-
1
votes0
answers27
viewsCalling function NODEJS returns 400
I have a REST method that calls a Function. This Function checks if a vaccine already exists in the database, otherwise creates and returns to the method that called it. However, when calling the…
-
1
votes0
answers22
viewsProblem with SSIS and Rest API
I have a unique problem and need help as soon as possible. The deal is this: I developed a SSIS application using Visual Studio 2019, but now discovered I need to make a connection using API. How do…
-
1
votes1
answer67
viewsJSON increment multiple request items in php
Colleagues, this feature includes an order with a sales item. I would like her to insert not just one item, but several according to the amount I have in my database. I know I have to select at the…
-
1
votes0
answers54
viewsConsume Youtube API v3 with React Native to list videos on a Flatlist
I really need your help, I am beginner in React Native and I want to do a Flatlist with the videos of a channel of Youtube, but I don’t know how to do the integration of AXIOS or Fecht with the…
-
1
votes0
answers37
viewsAPI GET Authentication Method
good night, I’m having trouble getting a GET Method with Authentication to work I have read the Documentation and installed the SDK in the Intellij IDEA of an Exchange API and am having difficulty…
-
1
votes0
answers55
viewsSocial login using API in Laravel with Socialite to be consumed in an application in Flutter
I am developing an API using Laravel 5.8 to be consumed in a flutter application. So, I’m using Laravel Socialite to log in with Facebook and Google. However, I’m still new to these frameworks and I…
-
1
votes1
answer91
viewsGenerate Token API access
Good morning, I will send a link through my system for the client to have access, until then everything is ok, however I wanted to send a token to validate, along with the link, and when the client…
-
1
votes2
answers123
viewsUpload c# files to API
Hello! I was sending files doing POST for Azure Devops (documentation) via Javascript (just to test some features): var request = new XMLHttpRequest(); request.open('POST', url, true);…
-
1
votes0
answers40
viewsError consuming api with Curl php -> 'Failed to connect to demo.d4sign.com.br port 443: Timed out'
When I consume an api with Curl php the following error appears: Failed to connect to demo.d4sign.com.br port 443: Timed out. Curl’s code: <?php $tknAPI; $cryptKey; $curl = curl_init();…
-
1
votes2
answers42
viewsuseEffect returning null
I’m starting with React Native, but I’m having trouble getting a list when loading the screen using useEffect, every time you start the screen the first time, setList returns empty, and when I click…
-
1
votes0
answers20
viewsTypeerror: clients.map is not a Function
I need to list some records, but is returning me an error: TypeError: clientes.map is not a function import React, { Component } from 'react'; import api from '../src/services/api'; class App…
-
1
votes2
answers61
viewsRequest for the Nodejs API
I’m trying to make an appointment of only 1 id and he returns to me an empty object. If I put localhost:8877/jogador/2, return on console is empty. If I put localhost:8877/jogador/1, he returns me…
-
1
votes0
answers49
viewsAPI access control using Flask JWT Extended
Hello. I am working on an API (Flask/Python) that should receive requests from an application (React-Native) and a Webapp (Flask/Python). For some requests you will need the login control. I am…
-
1
votes2
answers59
viewsHow to reload date after a Vuejs action
My list remains the same after deleting an item, only refreshes when I hit F5 on screen. I’ve tried using componentKey, but it only works when I click 2 clicks. Follow current component code:…
-
1
votes1
answer252
viewsError deserializing Json . NET CORE 5 - Jsonexception: A possible Object Cycle was Detected
I basically created an API project on. NET 5. My idea is to consume their API (Take repository information), and then make some information available in my API. The request is successful but there…