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
votes1
answer62
viewsError searching for record with Firstordefaultasync ASP . NET CORE 3.0
I have a method to search the client in the database by the number of the CPF (no points, only the numbers), but in the database the type is as VARCHAR. I did some tests by POSTMAN to test the API…
-
0
votes1
answer23
viewsService in workmanager runs only on usb cable by android studio
I have an android application where after the user enters his company ID he activates a switch and from there the application is posting in an API the position of it. This is done through the…
-
0
votes1
answer481
viewsView data from an Api in a v-data-table, an object within a Vue js object, vuetify
I have the following Json coming from an api, which I want to present in a V-DATA-TABLE: [ { "id": 1, "firstName": "Ana", "lastName": "Lucia", "phone": "(11)99989-8989", "mobilePhone":…
-
0
votes2
answers68
viewsSending email in HTML format via an Ajax JS request to an API that uses Curl in PHP
Good afternoon to all! I am structuring a contact form for a website and am using an API from sendgrid, available via rapidapi (https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send). With this, we…
-
0
votes2
answers330
viewsjavascript response does not appear on the page, only on the console
Good night, I’m using codeigniter, I’m implementing the pagseguro api, and I’m using a javascript to set the session id and call the payment methods, so far it’s all working, only in one function…
-
0
votes1
answer73
viewsReturn an api value
Hello, I wrote the following code: var request = require('request') var cheerio = require('cheerio') const express = require("express") const app = express() const PORT = process.env.PORT || 8000…
-
0
votes1
answer94
viewsHTTP request using RAW/JSON Angular 7
Good afternoon, I’ve tried almost everything but I can’t do a POST at the angle using a list, always returns error 500. This is the Component call. ngOnInit() { let CSVProduto:…
-
0
votes1
answer121
viewsHTTP GET in JAVA with a different result than POSTMAN
I am running an HTTP Get Request in Java using Gson to use the data in my program, but the first and last attribute are coming as null. However, when performing the request in POSTMAN I saw that…
-
0
votes1
answer123
viewsTypeerror: Contacts.map is not a Function
Hello, I searched on the subject and saw that it may be an error that may be due to not receiving an array. However, I put to be returned an array in the API, can be consulted here…
-
0
votes1
answer146
viewsError while performing Basic Auth authentication in REST API on android
I’m having a hard time integrating with an API using basic auth authentication. I created a Java API using spring boot and spring security. When I use Postman the request works without any problem,…
-
0
votes2
answers249
viewsC# API Routes (Beginner)
I created a new project like: ASP.NET Web Application - WEB API I created a new controller, however, I’m not being able to differentiate the ACTIONS. If I have more than one method of type GET, at…
-
0
votes1
answer15
viewsError printing Owner.screenname and Owner.url (Dailymotion Data API) property value
When running GET for PLAYLIST and VIDEO resources, I had a problem. When running GET on my console, the request correctly returns the values of the Owner.screenname and Owner.url attributes;…
-
0
votes1
answer45
viewsJavascript is not relating in HTML
I am training the consumption of an API, but my Javascript is not working and is not communicating with HTML. Can anyone tell me what I’m doing wrong? Javascript: function carregar_dados() { var…
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
0
votes1
answer129
viewsError when requesting API
I’m getting an error, possibly from CORS, when making a GET for an API, which is a third-party API and I don’t have how to release server-side CORS: Exception in thread "main"…
-
0
votes1
answer24
viewsError with Promise fetch
Guys I’m doing a beginner project with API,but arrives at a part I define a function but somehow error : script.js:29 Uncaught (in promise) TypeError: Cannot read property 'querySelector' of…
-
0
votes0
answers137
viewsPOST method does not work properly Node.js and express
good evening, by way of tests I created a small API to understand its functioning, however when running the POST method I found that it only returns me the empty keys: [ {} ] The correct thing would…
-
0
votes1
answer88
viewsHelp to transform a for each ( from a php file_get_contents ) into Json Encode
to performing a file_get_contents php on a site, ai shows all teams of this site, in the for each loop it shows me all the time ( that are between the file tags ), but wanted to turn all these teams…
-
0
votes2
answers56
viewsIs it appropriate to use If-Else in a function along with Fetch?
I’m creating a function with a . fetch to get data from openweathermap.org, which by definition returns in Fahrenheit. Is it acceptable from the point of view of Clean Code, which says that the…
-
0
votes0
answers124
viewsVuejs Application Deploy in Vercel - Error 405
You guys talking blz? I’m having problems deploying my nuxtjs application to Vercel https://vercel.com/ my problem is that when I make a POST request to my api that is configured in the project…
-
0
votes2
answers59
viewsSerialize to different objects in C#
How I have to create my class in C# to be able to serialize this json that comes in a request for my API? [{ "name": "campo_normal_1", "value": "valor do campo 1 normal" }, { "name":…
-
0
votes0
answers84
viewsError making a POST request with Springboot
I have the code below: String url = new StringBuilder().append("https://...").toString(); Map<String, Map<String, String>> body = buildBotBody(email,message);…
-
0
votes1
answer87
viewsSend to API via POST Request in Delphi 10.3
Good evening Guys, I’m a beginner in Delphi and I’m trying to send a creation request for an Api but I’m having some difficulty with the POST. How do I send this? I’m trying for this API:…
-
0
votes0
answers25
viewsIntegrate Form with Javascript with sending parameters Via GET Wordpress Avada Theme
Good evening Friends, if possible I need a little help from you. I’ve been trying to integrate a reservation system into a hotel site integrated with the Omnibees reservation system for a few days,…
-
0
votes1
answer49
viewsHow do I import the missing library? Google Calendar Python API
I’m trying to insert events in Google calendar, via Python script, but I think a library is missing, because when I run the script the following error appears name error named 'service' is not…
-
0
votes1
answer31
viewsFlickrapi and photos of a specific user with Python
Hey, guys, all right? I need to get some pictures of a specific FLICKR user and with a specific description for a college job. I’m still learning how to program, so I don’t really know how to do it,…
-
0
votes1
answer374
viewsReal-time component update at Angular
Hey, guys, all right? I’m starting my studies with angular and I’m having an implementation problem. I have an API, developed by me, in which the returned data is updated every 20 seconds on the…
-
0
votes1
answer25
viewsEnvato API Curl response error, malformed token
I’m trying to get data from Themeforest templates using the API of Envato; need data as template name and price from product ID. But the answer via Curl is that there is an error in the formation. I…
-
0
votes0
answers204
viewsUpload files to Sharepoint in a specific folder using Python
I am uploading file from my machine to Sharepoint using python with lib Office-REST-Python-Client, but I can only upload the file to the Sharepoint root and not to a certain folder. Code I’m using…
-
0
votes0
answers35
viewsHeritage with modelMapper
I am creating a project in college, in which I need to register a user. In my controller I receive a User and need to convert to a type of user, being them student, teacher, coordinator or external…
-
0
votes1
answer94
viewsAccess denied when I put two roles on routes using Adonis Acl
Hello, I’m trying to get the administrator and the patient to access some of the routes in my system. But the structure only works when I put only one roll in 'is:(administrador || paciente)' at the…
-
0
votes0
answers82
viewsSend an external API token with request in Node.js
I’m new to Node.js, I have a question maybe easy to resolve... I have an Node.js application that communicates with external API in php, send and receive information through tokens, and I found a…
-
0
votes1
answer74
viewsHow do I access elements of a json that contains multiple keys in python?
I’m practicing learning Apis with HG Finance , but when I filter the information through a FOR , I see that presents an error called KeyError: nome da moeda, But the code runs the same way, I’d like…
-
0
votes1
answer45
viewsResttemplate error
Guys I’m trying to perform a query in a time forecast API but whenever I will perform the query give me this exception Servlet.service() for servlet [dispatcherServlet] in context with path [] threw…
-
0
votes0
answers32
viewsError 401 when performing post request for an API itself
Hello, I am trying to make a post request for an API of my own in order to simulate a "like", the problem is that it is always returned the error 401 whenever I post request, however if I perform a…
-
0
votes1
answer42
viewsThe setState is not working
I’ve seen several posts about it, but none even agr helped me much... When it gives the console.log(this.state.list); the resulate is undefined... and I’m sure the data is coming from the API. Can…
-
0
votes0
answers47
viewsI’m unable to use fetch API
I’m unable to use fetch API I don’t know what’s wrong with my code. fetch('http://localhost:5000') .then(res => res.json) .then(data => console.log(data)) In the http://localhost:5000 has that…
-
0
votes0
answers21
viewsError trying to use Magento API SOAP 1.9
I’m trying to consume Magento’s SOAP API through the examples shown in documentation of the People themselves, but I’m getting the following error: Fatal error: Uncaught Soapfault Exception: [WSDL]…
-
0
votes0
answers30
viewsdisplay an online and offline background color status, and taking away information duplication using PHP and an API
Hello, I’m here to ask for your help, I have a job to do with pure PHP and an API provided by the company, and the part I stopped was where I need to do online and offline status by changing the…
-
0
votes1
answer27
viewsPOST method in the ASP.NET Controller API is auto-incrementing foreign key even if the value should be empty
I have the following code: public ActionResult Post(Project project) { try { _acess.AddProject(project); } catch(DataException ex) { BadRequest(ex.Message); } return Ok(); } Sent JSON object: {…
-
0
votes0
answers47
viewsRequest for Resttemplate spring
I am trying to make a request for a get type starWars api to the following url = https://swapi.dev/api/planets/3 The codes stayed that way: @Log4j2 public class SpringClient { public static void…
-
0
votes0
answers30
viewsDjango Rest Framework + React I can’t return the Cookie
I’m starting with Django and React development. I tried to make a User Authentication page. When loading the User Registration page I call the API in Django to return the CSRF via Cookie and then I…
-
0
votes0
answers38
viewsError calling localhost API in . Net Core and React Native. Returns (Network Request File) error
I’m trying to connect a request from my app using React Native calling this Api that was made on Dot Net Core. This is the desired result. But when access Android Virtual Device returns me an error…
-
0
votes1
answer23
viewsA href no innerHTML
I’m using the Google API to insert a map into my site, where the user types in their zip code, street, etc, and the API shows the nearest accredited stores to that user, but I wanted to reference a…
-
0
votes1
answer40
viewsPostman returns JSON, but Fetch request returns status 204 in browser
I’m making a request with the function Fetch(), but I always get the same message, with 204 status: However, when making the request via POSTMAN, I receive status 200, with the necessary…
-
0
votes1
answer32
viewsHow can I resolve this NPE error when fetching data in an API?
I’m looking to do a search on the Github API using Kotlin Coroutines in a different thread than the main one, but by receiving the values, it’s generating this error: 021-01-27 19:50:22.961…
-
0
votes0
answers41
viewsPUT method does not work like the others in ANGULAR
I created a crud application where reading, reading by id, creation and deletion works well. The PUT method does not work, returns CORS error I have done several console.log to see if the object is…
-
0
votes0
answers13
viewsIntegration with the Mailgun API
I’m trying to get events and emails from Mailgun users through their API. I already consulted the documentation and I can’t get this data and put it in my application. I can only get the answer from…
-
0
votes1
answer53
views -
0
votes1
answer86
viewsError while compiling SPRING BOOT application
I am trying to compile a java application and is giving this error: restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create…