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
votes0
answers2043
viewsUnexpected end of JSON input error
I am working with Ionic 3, picking up data through a Restfull API, using PHP and Mysqli, but returns this error: Unexpected end of JSON input. I believe the error is in the API. Follows my code: In…
-
0
votes0
answers262
viewsPass array object to API and save to Database
I’m using Ionic 3 and I want to save the data of an object in the database. In the API is running the query and saving null in the database, I imagine the way I am sending the object is wrong.…
-
0
votes0
answers68
viewsHow to properly verify the existence of a user in a Restful API (Nodejs) by sending Login and Password in a GET verb?
Verifying a user’s existence through a Restful API would be a GET transaction given that it would only be a select. Briefly would be sending the Login and Password this way: const validator…
-
0
votes1
answer993
viewsreq.body is coming empty when calling api on Postman and the application
I am consuming an api in nodejs but I cannot pass the parameters req.body is becoming empty and I cannot identify the problem var express = require('express') var app = express() var bodyParser =…
-
0
votes1
answer88
viewsVue Js and Pokeapi
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more…
-
0
votes0
answers122
viewsIs it possible to resolve the No 'Access-Control-Allow-Origin' error on the front end?
Personal need to consume a third party API with Javascript, I do not have access to release Cors in the API.. and this error is appearing as I can solve ? I have the following request using Axios:…
-
0
votes1
answer213
viewsHow to make a call about an API response
I’m working on this codepen. My goal is to create variable responses according to the temperature and climate of the place. Example: Clear sky and neighborhood 1 is answer X, rain and neighborhood 2…
-
0
votes1
answer41
viewsapi result different from my site result
I created a C# API in Azure where it returns me an array by passing the following parameters:…
-
0
votes1
answer36
viewsNode assync Function does not return data
index js.: $.ajax({ type:'POST', url: 'http://localhost:3000/login', dataType: 'application/json', data: {username: username, password: password} }) .done(data => { console.log(data); }); in my…
-
0
votes1
answer5430
viewsRun Curl command in an HTML/JS application
I have zero experience in API, JSON, Ajax, Curl, the most I learned in college was basic HTML, CSS, JS and PHP, I’ve killed myself searching and watching video, but with no one with experience to…
-
0
votes1
answer136
viewsnet. 4.6.1 reference error for . netStandart 2.0
I’m having a problem referencing a Standart2.0 project to my api . net Framework 461; occurs the following have the class: public class MeuReturn : IHttpActionResult { private readonly string…
-
0
votes1
answer77
viewsHow do I use the Facebook API to get the share link?
I have a job where I need to take the product sharing link from the customer’s online store and register it in the database. He pays by sharing his products, hence the need. I have to take link/id…
-
0
votes1
answer128
viewsAdd date in table
I’m pulling an API and putting its data inside a table, but this data goes to the table part that is td, but I want to put the date that the data were implemented there, then the date would be in…
-
0
votes2
answers145
viewsRails 5: Iugu and recurring payment
I looked in the documentation of Yugu which function in Rails I called to create a recurring payment on yugu, but I could not find. Can anyone give me a light on this? There…
-
0
votes1
answer1903
viewsAutomatically set date and time in HTML table
How do I automatically set a date and time in my html table? Doing it by js. I created a table by js and entered in it data from my API, only that this data goes to the TD part of the table, and I…
-
0
votes1
answer27
viewsHow to pass parameter in Nsarray in Nsurlsessiondownloadtask url
I am creating a Uitableview to load the bookmarks that are saved in Nsuserdefaults, the values are the Ids. ex. 34, 45, 55... I am creating the url and passing parameter through a Nsmutablearray.…
-
0
votes2
answers168
viewsSecurity failure (PHP, JS, API, MYSQL)
I made a site with login, registration and etc. I validated the login and registration with POST method, the site is on the server and everything, but when I put the link of the url already inside…
-
0
votes1
answer109
viewsRedeem Cookie Values
Good afternoon I have an application in MVC that generates some cookies, I wonder if it is possible to redeem these cookies through an Api, because I tried and unfortunately could not. Code…
-
0
votes0
answers43
viewsGoogle Maps Javascript API Warning: Noapikeys
I’m using a code to navigate on Google Maps and display the coordinates on the screen. In the code section it is necessary to inform a valid credential/key. I include as requested, but still…
-
0
votes1
answer1383
viewsSIGEP Post Office Troubleshooting Stickers()
Friends, I have a problem when I request the creation of labels in SIGEP-WEB. I am using php-Sigep. Running the php-Sigep example all OK. In this case the example sends the tag number already. In my…
-
0
votes1
answer62
viewsplay login data in API parameter
In the login I ask the user to put the email and Cpf, then I have an api that plays data in a table that I created, then I need to take the parameters Cpf and email to put in the api. Ex:…
-
0
votes1
answer487
viewsNo module named - Python
Hello, I did the installation of mailchimp3 this way: pip install mailchimp3 And also from Makilchimp: pip install mailchimp They did not present any error. When I’m going to perform the tapeworm in…
-
0
votes1
answer22
viewsStrapi freezes when selecting the database
Today I decided to venture with the CMF Strapi, I followed several tutorials, but it always freezes on the part of selecting the bank, even if I start the banks. Mongo initiated Time Strapi stops…
-
0
votes0
answers54
viewsPHP does not receive POST requests
I have the following code in my index.php: <?php header('Content-type: application/json'); var_dump($_SERVER); And I’ll file a POST request for him. I just don’t understand why…
-
0
votes1
answer31
viewsShodan implementation(Api) No return result
Good afternoon. So people are doing a test with Shodan to implement in another program. However when I type $:python python_test.py.py + ip or query It does not display the result and rtorna to the…
-
0
votes2
answers825
viewsError in Restful API authentication with Curl PHP
I’m writing a web platform that uses Sptrans RESTFUL API - Living Eye. Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token;…
-
0
votes1
answer153
viewsPlay variables to be parameters in the API
I have a website and to enter it you need to log in, and the data are: Cpf and email. And I have an API that I need to play the variables Cpf and email to be parameters in the api, but I don’t have…
-
0
votes1
answer199
viewsHow to bring an image of a website in the Node API request?
I’m making an application and wanted after giving a request, that the API bring an image of this website as an answer. For example, in giving error 404, I would like you to bring that. How can I do?…
-
0
votes1
answer244
viewsWhat is the problem with this java class that consumes a Rest service?
I have a Servlet : import br.edu.ifpb.pos.model.Art; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import…
-
0
votes0
answers518
viewsAPI consumption with multiple requests
Good morning! I need to make several requests in a REST API, using PHP, passing multiple parameters. currently I make one foreach using a variable in the url. However due to processing time and…
-
0
votes1
answer148
viewshow to handle a json that contains several results using python
Hello, I’m making a python script that takes the name of a movie and returns some data to the user(title, year etc). I am using the omdbapi, but my doubt is not about it but about how to handle the…
-
0
votes1
answer2124
viewsDifference between Webservice, API and Restful
I can’t tell the difference between them. All three are web services that can work with data externally, but I can’t understand the difference. Restful works with json, but so can the API and…
-
0
votes0
answers33
viewsGenerate auto-sequence of the api when you click on the specific product
I have a customer portal, and in this customer portal will have a page of "my purchases" there will show the products purchased, and when you click on it will appear the "tracking" of this product…
-
0
votes0
answers38
viewsError socket.io Node.js api changenow
I am developing a exchange system and need to receive in real time the status of transactions and exchange information, following the documentation changenow. but I always get the following error:…
-
0
votes1
answer129
viewsGoogle News API - Using Curl with PHP
I’m trying to use the API of Google News, can’t list the news I want from a certain category, I would like to do with PHP so that you can list and store them in the database. I took an example from…
-
0
votes1
answer549
viewsAndroid Application Consuming Webservice
I’m trying to create my first app to make use of a Webservice, in which case I’m just trying to return some of the information via string and later put each piece of information in its proper…
-
0
votes0
answers67
viewsProblem with Poloniex API
I’m having problems with the Poloniex API, when I run the code polo = poloniex.Poloniex('key', 'secret') polo.sell('BTC_MoedaX', 0.003, 3) polo.buy('BTC_MoedaX', 0.003, 3) Returns the error:…
-
0
votes2
answers1270
viewsPOST method receiving object vázio. C#
I have a controller with a POST method that always receives the null parameter. I’m sending JSON through Portman. I have tried to put the class as parameter, I have tried for string as parameter and…
-
0
votes1
answer376
viewsHow to configure a custom Swagger json file in Spring boot?
I’m trying to set up a json file in Swagger by spring boot, but the times I try it says it couldn’t find that file, does anyone know what I’m missing? Follow below my codes: Photo of my project…
-
0
votes1
answer34
viewsHow not to play for API response page?
By clicking on the button I designed to communicate with the call API, it throws me to a page where it confirms that everything was correct. Do not qeroq play for this page, what I could do,…
-
0
votes1
answer112
viewsTake data array from an API via Java
I have an API with a data array. Example: "bandeiras" : [ { "bandeira": "MASTER", "status": "ATIVO" }, { "bandeira": "HIPER", "status": "ATIVO" } ] What I have to do to get the data from each flag,…
-
0
votes1
answer60
viewsAdd Parameters query to url redirect in Implicit Flow authorization process
During the process of authorising an application via Implicit Flow in Jasmin it is possible to pass some extra information in the request so that it is included in the redirect uri when this is…
-
0
votes1
answer102
viewsweb api, how to do this login correctly?
I am developing an application that is a short version of a web system, this system was developed in PHP. For the application, I am developing in Xamarin Forms, however via web api I am trying to…
-
0
votes2
answers2793
viewsBack-end and fron-end communication
I am learning Reactjs, I made on the front end a simple screen of registration and I made the back end generating Ips with Nodejs, following this tutorial:…
-
0
votes1
answer68
viewsHow to restrict access to the Java API using Spring Security?
Hello. I have an API in my back-end that provides the data for my web application (web ad query application). The application has no login and password, so few registered users. It is an application…
-
0
votes0
answers249
viewsPage according to the clicked product ID (JAVASCRIPT)
I’m trying to get the ID of the boot which is a various rival and play on another page to perform a fetch API. Only this button is done automatically, it depends on how many purchases have in the…
-
0
votes1
answer341
viewsHow to pull data from BD to Table ? (REACTJS + NODEJS + API)
I want to create a table (this table is already created in my frontend - only html and bootstrap) and that it contains information from my database, that is, from the people registered in my…
-
0
votes1
answer729
viewsHow to convert a string to JSON object
I get in the @FormParam a text in JSON format, I want to know how to make it a JSON object in Java, so I can manipulate the elements? @Produces(MediaType.APPLICATION_JSON) public String…
-
0
votes1
answer911
viewsIntegration with Asaas boleto API
Someone around here has already made integration with the Asaas billet system follows the link in case someone wants to take a look there https://asaasv3.docs.apiary.io I was kind of wondering if…
-
0
votes1
answer73
viewsHow to change Webhook’s response in Woocommerce?
I have a problem in Woocommerce REST_API, in case the endpoint response wp-json/wc/v2/Orders, in products(line_items) is not returned metadata(metadata of products). As in the image above, it can be…