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
-
-2
votes1
answer86
viewsHow to determine intervals for a request?
Good morning, you guys! I have the following scenario: I am consuming a Google API that returns me data from a particular Youtube channel, basically I do the request and the return is a list of…
-
-2
votes1
answer806
viewsReturning the result of a query to the external API with Adonisjs
I am consuming an external API with Request in an application made with adonisjs, to request is done normally and is returning the statusCode and body but I cannot return to my API. I want to return…
-
-2
votes3
answers140
viewsI can’t view all data with foreach in PHP with data from an API
I am trying to bring to a simpler way the following information coming from an API: { "results": [ { "date": "2020-01-05T00:00:00Z", "total": 100, "visits_detail": [ ] }, { "date":…
-
-2
votes1
answer41
viewsAccess String in PHP
Good afternoon, I am using the Woocommerce Api to automate my website, but I am having problems when I try to access the answer it sends when I register the product. I send the request to create the…
-
-2
votes1
answer487
views -
-2
votes2
answers120
viewsRails API Using Gem PUMA Development Environment >> Production
I have developed an API that connects in an oracle database is working properly in development, but when I try to run the GEM Puma in production, it gives error. command to execute *** SIGUSR2 not…
-
-2
votes2
answers151
viewsAxios Node Put with authentication does not access
I made an Node application (v12.14.1) to access a webservice. It has Basic Authentication. const uname = "xxxxxxxxx"; const pass = "%$7675845353525$%"; const p_cpf = "97856353424"; const p_senha =…
-
-2
votes1
answer125
viewsHow to send id as parameter to url
I am training to build a blog, I can already recover the posts via API and display the results on the screen, but I need now when you click on the item (post), its id is sent to the url, forming…
-
-2
votes1
answer69
viewsFiltering information from . JSON
I have the following script: import json import requests def clima_semana(): requisicao = requests.get('http://api.openweathermap.org/data/2.5/forecast?q=Rio de…
-
-2
votes1
answer760
viewsHTTP/1.1 400 Bad Request
I have a method in DELPHI that performs a Post using TIDHTTP. The first time it works normally, but from the second it presents me the error: exception class EIdHTTPProtocolException with message…
-
-2
votes2
answers708
viewsHow can I catch error 401 when making a post using Reactjs Xios on a login screen?
I’m making a login screen, I have a function that posts an API sending user and password, and gets a token back from being correct (so far so good), or returns error 401, which is shown in the…
-
-2
votes2
answers219
viewsQuestions when returning data from an API to html?
The problem is that by clicking the convert button it consumes the API E shows the correct quote in the debug and console. But in time to pass the value moedaBVal = cotaçao * moedaAVal he passes as…
-
-2
votes2
answers1463
viewscreate dynamic select with Reactjs + Hooks
Hello. I am trying to create a form with four selects (Animal, Size, State and City) the state and city selects that are being a problem. One makes a request to present the Brazilian states (is…
-
-2
votes1
answer102
viewsBelongstomany Relationship - Sequelize
Hello, I have a problem in listing records with belongsToMany association using sequelize + nodejs. I have the tables Developers and Technologies. The relationship between them is Many to Many. To…
-
-2
votes1
answer133
viewsAPI Rest Spring boot
I’m developing an API to register clients using Rest and Spring, I can already add customers and search by Id, but I would also like to be able to search by name and I’m not getting, would anyone…
-
-2
votes2
answers90
viewsMy localhost route:3000/files/ does not show the image ( express.Static does not return the image)
In my static file path, it finds the image but returns only its binary and not the image itself for the view. What I want is to be able to view the image when placing in the browser for example:…
-
-2
votes1
answer81
views6 positional argument(s) expected, but 1 found. Try Adding the Missing FLUTTER
I’m developing a screen that sends information to a Rest C api# However from the following error 6 positional argument(s) expected, but 1 found. Try Adding the Missing Follows code: import…
-
-2
votes2
answers38
viewsError in calling an API
I am studying pure javascript and api calls. My code is giving this error: Uncaught (in promise) TypeError: users.forEach is not a function at renderUsers async function getUsers() { let url =…
-
-2
votes1
answer192
viewsPython Api Data Filtering
I’m doing an algorithm on Python that makes a get in a url to dollar quotation, but the return of that get has a lot of unnecessary information I would like to know how to filter this data follows…
-
-2
votes2
answers35
viewsProblems running the DDL on a Rest Api via JPA
When I go to execute I realize this mistake: org.hibernate.tool.schema.spi.Commandacceptanceexception: Error executing DDL "create table tb-product (id int8 not null, name varchar(255), quantity…
-
-2
votes1
answer40
viewsAngular does not display API data
I’m building an . net core API using c# with visual studio 2019. the entities are publisher and book and testing via Swagger and Postman, the CRUD of both is working perfectly. However, I started…
-
-2
votes1
answer41
viewsProblem when making a POST request
Hi, I’m trying to make a POST type request with Bearer token for an endpoint. When I perform this request by the postamn it returns normally, but when it is performed by the method I created using…
-
-2
votes1
answer23
viewsshow value instead of foreign key DJANGO API
Model from django.db import models from django.contrib.auth.models import User user_agent = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return self.name VIEWS from…
-
-2
votes1
answer67
viewsHow to show API results in HTML?
I’m with a project where I have an HTML input, where I send the link to an image of a car, goes to an AI that searches for an API. So far so good, the result comes back right on the console. The…
-
-2
votes0
answers13
viewsclickSign API
I’m new to php, I need to do an integration with the Clicksign api, but I can’t do it at all, someone has already done this integration? $document_key = "9955"; $name ="Juliete"; $email =…
-
-2
votes1
answer13
viewsSequelize returns error during api test
Good afternoon friends! I created a Rest api based on a youtube video using Node, express and sequelize. When sending an empty post, for one of the routes without access to the bank, I get return…
-
-3
votes1
answer280
viewsMusic recognition API (php)
I am working on a mini project, and I would like to know if there is an API (php) that can receive a piece of music and return the title of the same. A concrete example is the site :…
-
-3
votes1
answer6033
viewsHow to validate a CRM Medical Record?
I need to validate information to determine whether the user of my system is a doctor or a patient, in this case CRM, and I would like to know if there is any free API that validates or some…
-
-3
votes1
answer332
viewsPosts automaticas instagram php
I’m having trouble developing a php script to make automatic publications on Instagram, the same has a API for these publications, with support for CRUD, but for that, it is necessary that I be part…
-
-3
votes0
answers20
viewsStep by Step API Juno with Laravel 8
I need to integrate with the JUNO API. What is the step-by-step approach to making a payment integration via Credit Card? (already with the forumlarium s created) Step 1°: Create the Request Button,…
-
-3
votes1
answer79
viewshow to solve the modal problem by taking the last id
<div class="panel-body"> <table class="table table-striped task-table"> <thead> <th class="col-sm-1">Sistema</th> <th…
-
-3
votes2
answers352
viewsRead JSON multidimensional array via PHP
Gentlemen, I’m having difficulty reading a JSON that comes via API, I receive it in the following way: $json_file =…
-
-3
votes1
answer82
viewsReturn Undefined in html for JSON object request
I’m trying to return JSON objects from an api, only when the elements are rendered in HTML, the value passes to Undefined. I believe it is something with the request in appenChild, since it returns…
-
-3
votes1
answer95
viewsAPI query blocked by CORS
Expensive, I am calling an API, but it is being blocked by CORS. I have installed an extension in my browser that enables and disables CORS. When enabled the API returns the expected data, but when…
-
-3
votes1
answer21
viewsUpload image profile photo and associate to "profilePhoto" attribute in User entity with Spring
Guys I have an entity that way: I am using Spring Boot and Postman to instantiate new User class objects @EqualsAndHashCode(onlyExplicitlyIncluded = true) @Entity @Table(name = "tb_users") public…
-
-3
votes0
answers14
viewsVisual Studio Different Options
I’m taking an API creation course, but when creating the project the options that appear in the course are not available to me. OBS... In the installation I put all the packages of C#,WEB,. NET.…
-
-4
votes1
answer53
viewsIs it possible to consume an API with express?
I have a problem, I Wanted to create an API with express to consume Another API, but I don’t know how to do it ... Could you help me?
-
-4
votes1
answer179
viewsCielo Api: Error creating a purchase
When I send a request simulating a purchase: URL https://apisandbox.cieloecommerce.cielo.com.br/1/sales Json { "MerchantOrderId":"2014111703", "Customer":{ "Name":"Comprador crédito simples" },…
-
-4
votes1
answer123
viewsThe name "Json" does not exist in the current context
Good afternoon, I have the following part of my class that would serve to feed the objects obtained through a json online. public JsonResult GetJson() { string res; WebClient client = new…
-
-4
votes1
answer28
viewsForm can not fill all at once
Can anyone save me? is a form where the user places the Pokémon id and it fills in according to the API. only that it is auto-filling all other fields, or when mute fills only the first and no more…
-
-5
votes1
answer473
viewsReturn query with more than 1 parameter in Webapi
I have the code below, how would be the correct route? How can I test the call //http://localhost:1608/api/ApiCidade/consulta/clienteLoginSenha/ [HttpGet] //…
-
-5
votes1
answer269
viewsError when integrating Waze to PHP site?
I have a php site and need to upload a map and Waze data. How can I do this ? I’m using this repository: https://github.com/Nimrod007/waze-api…