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
answer213
viewsREST API Consulting another API
I need to make a REST API, which would query data from a cloud API, and return in the app in json format, but even with a lot of research, I didn’t find anything like it, I just wanted to know how I…
-
0
votes0
answers82
viewsView data from an Api in V-CALENDAR Vuetify Vuejs
Hello, I have the following data coming from my api: [ { "id": 1, "start": "2020-12-24 01:00", "end": "2020-12-24 01:30", "comments": null, "createdAt": "2020-12-24T19:37:52.699Z", "updatedAt":…
-
0
votes0
answers8
viewsGroup API Output via JSON
Is there any way to Group the returns of an API, accessed via Json cpReferencia = 1 cpDataMoldagem = 26/10/2020 | cpStatus = APROVADO cpDataMoldagem = 20/11/2020 | cpStatus = NEGADO…
-
0
votes1
answer25
viewsDisable automatic web api c#
Hello, I’m developing an Api in c#. There is a documentation that it generates automatically as per image below, only when I go up the API in production I would like to disable this documentation,…
-
0
votes0
answers23
viewsWrapper every 3 items in a listing
I have an api that returns me a list of customers and I have the following layout, my question is how to put the light gray bg div every 3 items. Just follow my code. <Grid container…
-
0
votes0
answers39
viewsError making the request
I am trying to place a request in a REST API using PHP Unirest. The error that appears when I print is: Bad URL, Colon is first Character The mistake: PHP Fatal error: Uncaught Unirest Exception:…
-
0
votes0
answers190
viewsHow to format REST API display in browser using PHP
I am building a Rest API using PHP. The data are accented correctly from the database and arrive in the application also correct. The problem is trying to access the API address from the browser. I…
-
0
votes1
answer83
viewsLoad 4-in-4 items into a javascript loop
I’m making a request on an API that returns some events, however I only need to display 4 items first, and if a "See More" button is clicked.. 4 more items should appear at a time.. I have the…
-
0
votes0
answers84
viewsError inserting documents into Mongodb
I made these Inserts by the shell of the Mongo: db.Operators.insert([{ Name:'Paulo de Tarso', Version:1 }, { Name:'José de Arimatéia', Version:1 }, { Name:'Catarina Silva', Version:3 }]) This is my…
-
0
votes0
answers178
viewsFile without extension
I have an application that streams an audio file on a page, but when trying to download the file it comes without extension. Follow the code I use : public HttpResponseMessage Get(string filename) {…
-
0
votes1
answer426
viewsRendering map using spring boot API
I am developing a web application using spring boot and am trying to implement a map on the main screen of the application. The latitude and longitude are being picked up in the mobile app, so I’m…
-
0
votes0
answers51
viewsUndefined function - Uncaught Referenceerror: codeAddress is not defined
I’m running a script to get the location of some accredited stores of the company I work for (using the Google Maps JS API). The code works in 2 pages normally, but on the last page where I will…
-
0
votes1
answer118
viewsHow to leave parameter optional, API Asp.net core
I have a question on how to leave optional parameters in the method call in the API. I have the following method: [HttpGet("{aplicativoId}/{moduloId}/{taxaId}/{musicaId}/{produtoId}")]…
-
0
votes2
answers23
viewshow to validate date field for if nothing is passed see the current date
I have an endpoint as follows: [HttpGet] [ProducesResponseType(typeof(IEnumerable<TestsDto>), (int)HttpStatusCode.OK)] public async Task<ActionResult<IEnumerable<TestsDto>>>…
-
0
votes1
answer27
viewsSearch for several API ids. net core
I do not know whether I was clear in the name however I have a doubt, I possess a route as follows: /api/produto/v1/Aplicacao/filter where this endpoint is a GET that passes a word as parameter and…
-
0
votes1
answer614
viewsMake Angular4 wait for callback to API without timeout
People see if someone can help me. I need to make a call on the API, but it’s a lot of data, and I want Angular to wait for that termination, At that moment I put a file but it does not wait and as…
-
0
votes1
answer52
viewsObject key is not recognized after using fetch
The console indicates a wrong saying Uncaught Typeerror: Cannot read Property 'name' of Undefined. within the scope of the function in which API access can access name and other keys. the code:…
-
0
votes1
answer25
viewsError while consuming API on Android
I’m trying to consume an API on Android, but I’m not getting it. Debugging looks like it cannot exit Asynctask and does not return the value to where it is calling the method. It can read the data…
-
0
votes0
answers98
viewsHow to add values of a request:
Example: request = requests.get('https://api.amountofsomething.com') quantidade = requisição.json()['amount'] This request returns the quantity, for example: {[{25}{120}{158}{0}{2}{10}]} I need to…
-
0
votes0
answers36
viewsConvert Date Kotlin
Next, I get a data json from an api: "data": "2021-05-03T14:07:19.000Z" need convert to show user... I made my data class with her: Data : Date no Adapter called it with a function that goes back to…
-
0
votes1
answer58
viewsWhat is the criterion of Java in having in some cases, a class in its API and in other cases an interface?
The Java API is immense, but some pre-defined features in it are implemented through a class and other functionality through an interface. What criterion used by Java to choose one or the other?…
-
0
votes0
answers15
viewsJson-server api does not render images
Good morning, I created an Ecommerce api with json-server and when I do the rendering component on the screen, the api images does not work, my project is divided into two folders, api and web, the…
-
0
votes0
answers519
viewsI am consuming an API with basic Authentication oauth and returns: Incorrect request (400)
Talk, you guys! Next, I developed an api in spring boot and already tested with Postman and it works normally, its security is a very basic oauth authentication. Now I’m testing in an application in…
-
0
votes1
answer25
viewsSend CSRF Token Laravel by Node.js - CSRF Token Mismatch Error
Good night! I have an API that was developed in Laravel, and when I am consuming it in NODE.JS with Axios and is returning the CSRF Mismatch Token error So I believe I need to send the Token through…
-
0
votes1
answer19
viewsHow to consume API in Vue to condition a route
I have the following code, I need the const 'exist' to receive information from an api object, I am trying to use Axios but without success. const existe = informação da api; export default [ {…
-
0
votes1
answer542
viewsI’m doing an integration with Cielo’s api but I get an error message:
I’m doing an integration with api-Cielo 3.0 but I’m getting an error message: application code package cieloecommerce.sdk.ecommerce; import java.io.IOException; import cieloecommerce.sdk.Merchant;…
-
0
votes0
answers8
viewsIs there a Rest API to run a Colab notebook (via Webhook)?
I have a project in my company, where I developed a script automation in google colab, I need this script to run daily at midnight. Is there some kind of Colab Rest API for me to perform this drive…
-
0
votes0
answers14
viewsApi - Create Email Google
all right ? , so I was wondering if anyone knows or has used or if there is, api to create gmail accounts, I was seeing something on this link here: Create a user acount, ai in it has a json request…
-
0
votes1
answer51
viewsReturn in JSON
You guys, a doubt. Making an API on NET 5 and using EF, when I make a query for related data the return on JSON gives error 500. // GET: api/Estadoes/5 [HttpGet("{id}")] public async…
-
0
votes0
answers33
viewsHow to do this foreach to get news?
I have a link that I believe is an API, and I need to pick up the news (as if it were a feed) but I’ve done several foreach I can’t associate to bring the text I want inside PHP, follows the link…
-
0
votes1
answer75
viewsSaving data in Angular API
I need to save a data set through an API. I tried to pass the data in several ways but did not succeed. Always gives the error: ERROR Error: Uncaught (in Promise): Httperrorresponse:…
-
0
votes0
answers41
viewsRestful returns Undefined in JS Class
I’m making changes to HTML after taking data from the Lastfm API, working with class in JS, making method calls within the class itself, where the date was called before, but this returns Undefined:…
-
0
votes1
answer474
viewsRead/Search information inside a Json with PHP
I’m starting now with the most complex queries within PHP. As always I played Wow I decided to learn a little about API with PHP using the Blizzard API that gives me some information. After a lot of…
-
0
votes1
answer75
viewsView api with Ionic
Good afternoon to everyone, I am consuming an api, but I can not display it in my template, it is consumed, appears on the console, but I can not in the template. Component : import { PaisesProvider…
-
0
votes1
answer217
viewsError 404 when using Cielo Ecommerce API
I am trying to make a request via API to make sales via credit card. URL of the Handbook: https://developercielo.github.io/manual/cielo-ecommerce#requisi%C3%A7%C3%A3o JSON informed by CIELO {…
-
0
votes1
answer668
viewsIntegrate Rdstation with Django + Python p/ lead submission
Good morning guys, I have a problem: I have an LP that has to save the lead in the Postgres database and automatically send that lead to the RD platform using their API. using the curl I do it this…
-
0
votes0
answers197
viewsHow to request another site?
Hello, I’m having trouble making a code that I have in mind. It would be as follows. I have a website that talks about the buses of my city and I am developing a code in php looking for air buses…
-
0
votes0
answers8
viewsHow do I send messages to Telegram?
def set_chat_id(c): chat_ids.append(c) def main(): api_config = {} with open('api_config.json') as json_data: api_config = json.load(json_data) json_data.close() TOKEN =…
-
0
votes2
answers228
viewsAllow a list as argument
I have a Python REST API that takes 2 arguments, a Url list and a word. I am a beginner in Python and would like to know if it is possible to split the string of the URL to accept more than one URL…
-
0
votes0
answers86
viewsProblem Configuring Google Maps API
Guys I can’t set up the Google Maps API, I’ve put my Keys and everything but it won’t. <!DOCTYPE html> <html> <head> <title>Simple Map</title> <meta name="viewport"…
-
0
votes1
answer112
views -
0
votes2
answers202
viewsHow to create a Ruby On Rails application (not just an API) and provide some routes as an API
Hello, I am developing a common system with ROR and it has a structure not only of an API, as it has its views and everything else. The point is that I will also build an API to serve it to a mobile…
-
0
votes0
answers91
viewsError while listing routes in an Laravel Api
Personal I am developing a Rest api using Windows and to create this api I am using the tutorial: https://rafaell-lycan.com/2015/construindo-restful-api-laravel-parte-1/…
-
0
votes0
answers116
viewsError trying to authenticate to a standard API
I am trying to authenticate my request to an Laravel API (5.4) . Even following the documentation authentication documentation, whenever I send the request, I get the following return: Not Valid…
-
0
votes1
answer526
viewsReceive and treat JSON with PHP
Good evening guys, I’m new to the world of programming, Thanks in advance. //Recebendo o Json $dados= json_decode($response); echo "<pre>"; print_r($dados); echo "</pre>"; // Dados…
-
0
votes1
answer232
viewsHow to consume an API "without permission"
In the searches I did, I found that it is not possible to consume an API if you do not release your host on the server(back-end), but I hope you are mistaken, this is the reason for this question,…
-
0
votes1
answer14224
viewsTypeerror: list indices must be integers or Slices, not str
Hello, everyone. When I run this code I get the following feedback: Typeerror: list indices must be integers or Slices, not str How can I fix this? import pagarme import psycopg2…
-
0
votes1
answer544
viewsHow to send information from a Javascript site to the NODE.js server
Guys, I have a javascript site where I get information from a Rest API (json) i would like to delete this information to my server (A Node.js that I created that connects to the database) is my…
-
0
votes1
answer78
viewsHow to work with asynchrony using Reactjs
I have the following code: requireUsers = () => { this.users = database.ref('users') this.users.on('value', snapshot => { this.state.users = snapshot.val()…
-
0
votes1
answer138
viewsImage manipulation with nodejs and Ionic
I have an Ionic application, in it I have to send an image converted to Base64 for an api, and the api for the database. I was getting error by the size of the payload, I found on the internet about…