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
-
4
votes1
answer1930
views -
4
votes1
answer54
viewsPayload blank return when performing return to WEB application in Golang
I am checking in the API if the user’s email is already registered and returns a warning message. Even performing the requests the payload returns empty. Even debugging and knowing that the payload…
-
4
votes1
answer1360
viewsLatitude and longitude average by CEP
I need to find the starting point and end of CEP latitude/longitude. I need to analyze on average a latitude and longitude and this initial and final parameter would show whether this coordinate is…
-
4
votes1
answer12477
viewsUpload image with Axios to a Node.JS server
I’m trying to upload an image using the library Axios, but she’s not getting into the back-end. Image input <input type="file" class="custom-file-input" id="file" name="file"> Note: My form…
-
3
votes2
answers374
viewsJoining Modal Bootstrap with HTML5 History API
There is a way to join the modal from Bootstrap (any version) with the API History? The logic would look like this: Opening the modal URL in the navigation bar would change to…
-
3
votes1
answer347
viewsProblem with Google Maps V2 on android SDK
I’m getting this error in my Android project using google maps V2 API: 02-24 11:18:03.627: D/memalloc(24852): /dev/pmem: Mapped buffer base:0x53e95000 size:2949120 offset:2334720 fd:51 02-24…
-
3
votes1
answer225
viewsjavax.el - Implementation of Glassfish
There is a JSR-000341(Expression Language - EL) API in version 3.0.0. Maven dependency on the javax.el API: <dependency> <groupId>javax.el</groupId>…
-
3
votes1
answer1046
viewsHow to work securely on an Android+API?
I need to develop an API that will receive data from a json user via $_GET with PHP, which will check the data and return a true or false value to the Android application. I am currently using AES…
-
3
votes1
answer192
viewsSlow response PHP API
I’m doing a project with band profiles. I’m trying to use the last.fm API.. For test basis I downloaded the PHP API: https://github.com/fxb/php-last.fm-api The classes I left in…
-
3
votes2
answers1073
viewsHow to do zip validation for Android
I would like to know how I validate a cep typed by the user in an Edittext on Android. Do I need a specific API? I want to validate if the zip code is existing and return to the screen if it is not.…
-
3
votes1
answer100
viewsGoogle Api - SEO - Google Index and Google plus via json
I need to recover via json or some other way Google SEO information to feed my database.. For now it’s just Google Index and Google+ Does anyone know how to do that? Or someone has some example of…
-
3
votes1
answer1277
viewsPagseguro class does not work with CNPJ.
I was having a problem making payments using the class provided by pagseguro and cnpj. Every time I tried to make the payment, I made the following mistake: HTTP 400 - BAD_REQUEST [THE REQUEST…
-
3
votes0
answers93
viewshow to collect retweets and replys from a ruby user
I’m doing a job and in it I need to collect the number of retweets and replys of 10 tweets from a Twitter user. In the code it is already possible to collect the number of followers and following…
-
3
votes1
answer1072
viewsAPI with Javascript
I would like to know how to make an API in the javascript language to return data as JSON. I need because I want to make a mobile app.
-
3
votes1
answer45
viewsRuby doubt Apis
I was reading in the ruby documentation on link about the default ruby classes, but I saw that it has more classes than the documentation shows how to yaml, where can I find those Apis? I want to…
-
3
votes1
answer109
viewsRetrieve spatial data via an HTTP request via Google Maps URL
Good morning guys. I’m looking to retrieve some geographic information using latitude and longitude as parameters. To recover such information I am trying to make a request via URL through this…
-
3
votes1
answer148
viewsDeezer API - JSON request error with $.getJSON
When trying to perform a simple search on Deezer API (Public Search API without Need for Authentication Key) I get the following error message as return: XMLHttpRequest cannot load…
-
3
votes2
answers1059
viewsJSON API Callback
I have a question as to how to filter results from a API, and I wonder if anyone has had this problem before. Let’s say we have to access a API which is on a server other than ours and which returns…
-
3
votes1
answer1040
views -
3
votes2
answers162
viewsExtract Posts from Linkedin Feed
I’m searching the Linkedin documentation for a way to extract the Posts from a particular company. You can do this ? I’m not finding methods. The closest I got was this link:…
-
3
votes2
answers6083
viewsSearch Products via API or Web Crawler
I intend to develop a software that displays product information. I wonder if the large Commerce used here in Brazil (American, Walmart, submarine, extra) make available some API to search the…
apiasked 8 years, 10 months ago Guilherme Ferreira 369 -
3
votes1
answer235
viewsHow to access hardware on Linux in C?
I am aware of the existence of the Microsoft Win32 API, which allows the programmer to manipulate low-level resources such as serial ports, memories, CPU, GPU, etc. However I work with Linux…
-
3
votes4
answers855
viewsDeserialize JSON
I can do the POST of this information: { "Nritem": 1, "Cdprevenda": 3, "Cdproduto": 7, "Decomplitem": "", "Descricao": "Depilação", "Dtcadastro": "2015-11-27T13:53:35.120Z", "Flsituacao": 1, "Md5":…
-
3
votes1
answer1532
viewsChange caption line Google Charts
I am currently using the Google API (Google Charts) to generate some charts, but I noticed that when there are small percentages, eg: 0.94%, 1.2%, it makes the reading of the "Labels" a little…
-
3
votes1
answer395
viewsHow to get the size of an external window
In my case I have an application that runs parallel to a third party application which I don’t have access to the source, I need my program to capture the size of this window to display a form of…
-
3
votes1
answer1127
viewsJSON Restful API Accents
Good morning, everyone, I am creating an API for study, but I have some problems with accents. When I do a search, I have an answer of not found. Goes down a test. There would be some solution for…
-
3
votes2
answers2344
viewsIs there any way to send image by JSON to an api?
I want to send an image (I will save it in bank), but I do not know how to send it together on POST. I’m using AngularJs: <input type="file" ng-model="user.imageProfile"> $scope.register =…
-
3
votes1
answer274
viewsWhen consuming an API that returns me serialized data in JSON, how do I know the data types of the properties?
I have no experience with JSON or web services consumption, but I am trying to consume an API that gives me weather data. Here is the documentation of the API I’m trying to consume. This API returns…
-
3
votes1
answer1199
viewsHow to get filename within folders in WEB API server
I have a directory Archive/Uploads And I would like to list all the files, within this directory I have N folders. what I’ve got so far is here. string path =…
-
3
votes1
answer763
viewsHow to Save Files to Separate Server by Extension
I have a WEB API who receives a file via POST follows the code of Controller: public async Task<HttpResponseMessage> Post() { // Ver se POST é MultiPart? if…
-
3
votes1
answer83
viewsSearching nearby locations with DISTINCT? (Maps API)
I have a separate table in MYSQL with user addresses containing location information (latitude and longitude), and each user can have more than one registered address. My goal is that when…
-
3
votes1
answer997
viewsMake the adhesion to the plan pagseguro preapproval
Currently, I am trying to integrate recurring payments with pagseguro. Currently, the API returns the ['preApprovalRequest'] ['code']. The problem is that I don’t know where or what I do with this…
-
3
votes1
answer2569
viewsGet Response from an API that returns error 500
Next, I have an API that returns error 500 every time it violates the business rule by returning me a status and a message. We know it’s not good practice to return status 500 under these…
-
3
votes3
answers262
viewsMany to Many JSON POST - Rails 5 - Only API
Hello, I am developing an engine in Rails 5 where it will be just a blog API. It will be a simple system. Post has several Passions and Passions has several Posts. I made the relationship N…
-
3
votes1
answer914
viewsCircular dependency on Rest API with Spring Boot
I’m venturing into developing a Rest API using Spring Boot, JPA with Hibernate and Maven to manage the repositories. In my modeling I have a class Club: @Entity @Table( name = "CLUB") public class…
-
3
votes2
answers2148
viewsCORS JAVA (ERROR)
I’m trying to connect to an API that was made in Java, but always error when trying to connect (I want to feed a mobile application, made in JS/Cordova). When connecting (via Browser) I can, the API…
-
3
votes1
answer199
viewsHow to call youtube API with multiple parameters?
I’m trying to get the data from various videos, but the Youtube API is separate for videos and playlist, then I used the API of playlist to obtain the VideoID of each video in a given playlist, but…
-
3
votes1
answer101
viewsIs ASMX web service obsolete?
I came across the need to consume an ASMX Web Service. Until then I had only consumed Restful Apis. I noticed that the same is very different from a Restful API, for example. Given the way it is…
-
3
votes1
answer1037
viewsDoubt when deserializing JSON C#objects
I am deserializing the JSON below, and would like to know, if I need to create a class with all attributes related to this JSON, or can I just create with the attributes I need to use? Am I going…
-
3
votes1
answer94
viewsWhat is callback server-to-server?
I wonder if it is a concept, I am using a service that informed me that information can be obtained via callback server-to-server, but I did not understand exactly the meaning of the term.
-
3
votes1
answer343
viewsError when using POST in Laravel API
I’m learning how to build an API using Laravel 5.4.*. In the Api.php: $this->get('products', 'API\ProductController@index', ['except' => [ 'create', 'edit' ]]); In the Product.php: class…
-
3
votes2
answers189
viewsWhat data can I get from a user?
I am creating a Landing page that aims to capture as much information as possible from users who can become future customers So far I can get the location by geolocation in javascript (if the user…
-
3
votes0
answers123
viewsIBGE demographic data by neighborhoods
I saw on some sites that are presented IBGE demographic data by neighborhoods. By the analysis I did using the IBGE API documentation I could only get to the city level. I know that somehow it is…
apiasked 5 years, 7 months ago Bráulio Figueiredo 130 -
3
votes1
answer94
viewsJSON Return to JAVA Class Conversion Error
I have a java class public class PRODUTO extends SugarRecord implements Parcelable { private float id_pro; public PRODUTO(float id_pro){ this.id_pro = id_pro; } public float getId_pro() { return…
-
3
votes1
answer203
viewsWhat are the main advantages of the Restful Api?
Regarding the REST API maturity model, level 2 consists of "HTTP + Resources + Verbs". What are the advantages over level 1 and zero? In addition to organizing the API.
-
3
votes1
answer249
viewsHow do I "hide" the key to an API before putting the project into Github?
I’m creating a project for a website that uses the Unsplash API (which returns images). The problem is: if I add the call to the API in the remote repository, mine client_id will be exposed as the…
-
3
votes1
answer56
viewsHow to write tests for an External API call?
I am researching about Unit Testing and TDD and wanted to apply this to some scripts I have developed. The issue is that these scripts create data on an external service by calling API methods, for…
-
3
votes0
answers92
viewshow to mark people in instagram photo using PHP
how do I mark people in photos before uploading to instagram using php I am currently using this api and in it I can upload the photo with the desired text to instagram, but and I wanted to mark the…
-
3
votes1
answer14667
viewsREACT-JS - Warning: Each Child in a list should have a Unique "key" prop
Problem in rendering my state always gives error: Warning: Each Child in a list should have a Unique "key" prop. Check the render method of Main. See https://fb.me/react-warning-keys for more…
-
3
votes2
answers220
viewsAWS Lambda Function ( versioning and integration with API Gateway )
Problems with lambda versioning: I have a lambda function where I use environment variables. This function is executed by an endpoint through the Gateway API ( aws ) I have 3 stages of the same…