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
answers518
viewsHow to send $array with the Post method in Windows?
ERROR RETURNED The GET method is not supported for this route. Supported methods: post. MY ROUTE Route::post('/boleto-create', function () { $data = array( 'amount' => 1, 'due_date' =>…
-
0
votes0
answers107
views -
0
votes1
answer824
viewsCurl Error #:SSL Certificate problem: Unable to get local Issuer Certificate
Hello, I need to request an API using Curl in php, but the server response is "Curl Error #:SSL Certificate problem: Unable to get local Issuer Certificate". The other certificates, which are being…
-
0
votes2
answers212
viewsFailure to Try to Inject Spring Boot Interfaces
I’m developing a three-layer Rest api. Service, Repository and Domain, I injected the repository into the service using @Autowired but when I try to inject the service into the controller in the…
-
0
votes1
answer1041
viewsProblems creating API with Firebird Database and Node JS
I am studying how to develop an API to query data from a Firebird database. To do this I am using the Node-Firebird, but the connection does not seem to be working. Follows excerpt from the code:…
-
0
votes2
answers170
viewsError handling JSON data from a PHP API
I am in error when manipulating JSON data from an API, some fields I can even manipulate. I’m taking the responsibility of the API, converting to a PHP object with the json function Code the problem…
-
0
votes0
answers81
viewsMy function is not filling the value to return in function
I am developing a test API using nodejs and Firebird and after a lot of struggle I was able to make the bank consultation work. However I am not able to make the function return the values that were…
-
0
votes0
answers181
viewsHow to send notification with onesignal for android app via Firebase
So my app uses firebase, connected it with onesignal use a php function that sends notification to web browsers. I WANT TO SEND VIA PHP DIRECT TO FIREBASE, OR BY ONESGINAL MY APP ALREADY AND…
-
0
votes0
answers222
viewsHow to group array of JSON objects with PHP
I am receiving a JSON string from an API, to display the data I am converting the JSON string to php object, but my question is whether it is possible to group these objects, for example group all…
-
0
votes1
answer71
viewsHow to reference a data already existing in the table with Hibernate
I’m creating an api using Java with Springboot, and Ibernate. The idea is to save guests in the database, and these guests have a group, I don’t really understand the notes, but Mapeei with…
-
0
votes1
answer170
viewsPass two variables concatenated into a Json object of a PHP POST Curl
I’m sending this json request in the Curl POST with PHP. Here the json of the POST: "Payment" => [ "Type" => "Vendor", "Amount" => 100, "CreditCard" => [ "CardNumber" => "$card",…
-
0
votes0
answers268
viewsMethod that takes all data returns empty JSON in the API
I’m developing an API based on code from a publication I saw on the internet, source: https://www.w3jar.com/crud-rest-api-in-php-pdo/ This file has a condition, if I pass an ID it returns a good…
-
0
votes1
answer105
viewsHow does Password Grant Tokens work on Windows?
I want to develop an application to consume a Rest api and I want to add API KEY to validate the communication between the client application and the service (cross-device validation), application…
-
0
votes1
answer763
viewsonClick={} with div return with API content
talk boys. I’m having a beginner problem... I’m new to reactjs and wanted to know how to do it: as soon as I click the button it returns me the data of the api inside a DIV ex: (article, Section and…
-
0
votes1
answer119
viewsError with Passport plug in Heroku
I have deployed an application to Heroku and am getting the following error "message": "Key path "file://app/Storage/oauth-private.key " does not exist or is not readable", "Exception":…
-
0
votes1
answer56
viewsHow to make a request that changes the values according to the return of the api
Hello! I have to request an api, but the api values change dynamically. was giving a read on Observables, and I can’t tell what I’m doing wrong the function is already of the Observable type... but…
-
0
votes2
answers409
viewsSend JSON with python to API
I’m putting together a list of objects to post to an API in made in Arabic, but I can’t convert the data to work on the API. In python the list of objects is something like: payload = […
-
0
votes1
answer212
viewsRequest in graphane API with PHP
I’m trying to create a PHP file that does direct authentication on GRAPHANA and displays the DASHBOARD on my page, but is not displaying anything with the structure below: <?php //Server url $url…
-
0
votes1
answer115
viewsHow to make an auto complete in the Standard
<input class="typeahead form-control" style="margin:0px auto;width:200px;" type="text"> </div> <script type="text/javascript"> var path =…
-
0
votes1
answer42
viewsAssigning a text within JAVASCRIPT methods?
I have a problem need to insert a text before returning a request in a api: getSW(); function getSW() { $.getJSON("https://swapi.co/api/films", function (json) { var data =…
-
0
votes1
answer88
viewsMount Array to API
Good morning to you all. I believe my question is primary, but I’m getting a lot of heat. Here in the company we will use an online ERP in which we intend to include our sales orders (using PHP) via…
-
0
votes1
answer169
viewsConstant '' " used before being initialized
How do I get access to an attribute of one class in another? It may sound silly, but I’m learning now Swift and still getting confused with simple things. I’m trying to make a movie app using an…
-
0
votes2
answers467
viewsHow to put a json returned from an API within a select?
I am trying to make the credit card payment form, using the pay.me. I would like to calculate the installments via API and return them within a . I can return the json and return it to the…
-
0
votes0
answers124
viewsHow to use cookies to authenticate in an API?
I have a problem to authenticate in an API, it generates a cookie after logging in with user and password, soon after, to perform a GET I need to send the generated cookie. Explaining in detail: To…
-
0
votes1
answer130
viewsProblem with loop in React
This is a common loop problem in React, which is basically making hundreds of flames in my Aces. The component apparently isn’t inside the loop,. component: import React, { useState, useMemo } from…
-
0
votes1
answer42
viewsDecode received URL
I’m working on integrating payments through Pagar.me, but I’m not able to decode their postback to process the returned information. The return format is based on URL, I performed a url_decode() to…
-
0
votes2
answers316
viewsHow to access the React upload Enable in the Laravel API?
I have an app in React on, I have an option that the user can change his avatar, I am using the library ImagePicker and I have the API in Laravel. I’m having trouble accessing the chosen image in…
-
0
votes1
answer895
viewsCORS is not enabling
I developed a API REST in Node.js and I need to use it in my front-end. I’ve installed the library Cors and enabled on my server but continues to give the error of access when making the request…
-
0
votes1
answer1174
viewsHow to pass Json parameters, to consume a C#API
I am trying to consume a Pay API transfer that asks to be passed the email of who will receive, the value and the description, I did according to the model below but I think it is not correct. Note:…
-
0
votes0
answers420
viewsPokeapi: faster creation of a pokêmon list
I’m looking to create a program that offers information about Pokémon, using the Pokeapi, to gain access to each creature’s data. I’m doing this program through the eclipse, with the help of Maven.…
-
0
votes0
answers27
viewsHow to recover an idUsuario(user_id) from an idAnuncio(ad_id) models by Discount(Discount) Discounts? REST API
I need to do a query to recover a User’s discounts(idUsuario = user_id) by the Discount models' numbers, however, discount is only related to an idAnuncio(ad_id), so it’s like recovering an id via…
-
0
votes0
answers204
viewsMy aspNet core 3.0 project does not access the DLL generated by visual basic
I received a dll generated in vb6 to integrate with my api in Asp.net Core, na dll to various calculation methods. With this, I must invoke these dll methods in my Asp.net core 3.0 project in visual…
-
0
votes1
answer58
viewsAPI Rest only returns the last value
I am using ASP.Net to create a REST API I’m trying to create a method that returns a list of groups structured this way: { "IdGroup": "1", "NameGroup": "Group1", "Installations": [ {…
-
0
votes1
answer141
viewsWEB API POST returns NULL
I am starting my studies with REST API and following an Internet tutorial I developed this API : Class : namespace SimpleRESTServer.Models { public class Person { public long ID { get; set; } public…
-
0
votes1
answer689
viewsInsert values from a variable into the database with nodejs, mysql and sequelize
I’m trying to input into the database the contents of the variables: token and now. The respective fields in the table users of the bank are: passwordResetToken and passwordResetExpires. I can…
-
0
votes1
answer147
viewsCors Error - Visual Studio . Net Web API React
I have a project where the back is in . net and the front in React. I can do all CRUD operations with Postman, however in React I get Cors error. I understand the cause of the problem, but I cannot…
-
0
votes1
answer30
viewsWhat kind of data in an Application Service with 3 different tables?
I have an Application Service in ASP.NET Core that will fetch the database data from a table "Employees" that are number, name, departmentname and cityname... the last two fields I mentioned are…
-
0
votes1
answer387
viewsWhatsapp API does not connect to database
I am beginner in this area of servers, Docker, Whatsapp API, etc. I need to install it in my Godaddy VPS. The Docker is already installed correctly and the Whatsapp api is also installed and…
-
0
votes1
answer341
viewsInfinite looping in bidirectional relationship - Manytomany
I’m building a Rest API in Springboot. In it I have 2 related classes, and when I do a get in one of them they return me a looping Infinite through your foreign keys I’ve tried using the…
-
0
votes1
answer782
viewsFetch function in Javascript returns Undefined
Hello, I did a little function called makeRequest, which, by receiving a URL as a parameter, makes a simple GET request to the URL using the FETCH method. I’m using a simple github endpoint, where…
-
0
votes1
answer63
viewsQUERY ERROR sequelize Association LEFT OUTER JOIN API NODEJS
I have the following SQL command: select u.name_user, a.type_administrator from users u inner join administrators a on u.id_user = a.id_administrator; and I need to turn this into my API into Nodejs…
-
0
votes1
answer913
viewsImage in flutter’s Image.network URL does not work on physical device
I made a basic app, because until then, I only used Image.asset() to put picture, now I went to put Image.network() and the URL and it worked on the AVD I created, but when I do the APK and install…
-
0
votes1
answer56
viewsLaravel API Guzzle recording data in the database with array -> HOW TO DO?
Hello, I have an API that consumes external information and needs to record the resulting data in the database, but is returning data in an array. I need a help to record the data, I appreciate the…
-
0
votes0
answers199
viewsCleaning function in useEffect is not working
Hello! I am trying to cancel my api call using Axios when the component is unmounted, and although it seems to be being canceled, I still get the error: Can’t perform a React state update on an…
-
0
votes1
answer160
viewsProblem when viewing API Nodejs with Axios
Problem I am not consulting my API nodejs with Axios. I have tested the backend numerous times with Postman and everything works correctly, Focusing with Xios always returns the same error. If…
-
0
votes1
answer133
viewsVariable Node.js takes Undefined value
I am trying to pick up the answer of an API, within the function body receives the JSON but outside the function the value is set to Undefined async function getJSON(){ var options = { url:…
-
0
votes1
answer1132
viewsAPI Rest ASP.Net Core 3.1 returning 404 error when published
I’m doing some testing with Apis in ASP.Net Core 3.1. In this case, I am using Entity Framework to access the database and Identity Core to register and log in users. To do so, I have implemented…
-
0
votes3
answers119
viewsHow do I reset the Flask server using if within the algorithm?
Next, I am creating a game in order to learn, however, I need this game to "reset" when the amount of attempts is reached. At the beginning of the code I have the following: from random import…
-
0
votes1
answer128
viewshow to do Curl -X POST -d in PHP
I’m doing an integration with an api that brings real estate In the documentation, it looks like this: curl -X POST -d "client_id=1234&client_secret=abcd&grant_type=client_credentials" \…
-
0
votes0
answers24
viewsHow to use the mongodb-stitch-browser-sdk Stitchappclientconfiguration in browser Javascript?
I tried to use the code to inform localAppNamelocal and localAppVersion in Javascript, but I can’t find any clear examples on the web. Someone with knowledge about Stitch can show us the right one?…