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
-
1
votes2
answers147
viewsAccess control Access-Control-Allow-Origin on the Apache PHP server side
I don’t know much about PHP and I’m trying to create an application to automatically register products from my online store directly in Mercadolivre. Ad data is captured with JavaScript and sent to…
-
1
votes2
answers60
viewsHow can I ensure that my API will only be used for the features I want it to use?
Hello, I have the following question. I have an application that will be used by several companies, each company will have a number of employees (users only company) and I have common users…
-
1
votes0
answers35
viewsDeploying Skype to site
I’m testing the skype Webcontrol feature, where it’s possible to add a skype chat window on the site. But I have a few mistakes I’m having trouble solving. The window itself appears, but errors…
-
1
votes1
answer252
viewsJava - What to do when JSON can come in Double and Long?
I am using a Climatempo API. When I get the weather data of a city via JSON I get the temperature as follows: clima.setTemperatura((Long) dataNode.get("temperature")) However, in the API…
-
1
votes1
answer284
viewsConsuming API with Nodejs
I am developing as study projects an API that consumes data from the Google API. I want my API that receives various data from the Google API to provide only the City and State data for the…
-
1
votes1
answer4288
viewsc# Consume an API using POST and header application/x-www-form-urlencoded by passing a JSON
can give me a light? I need to consume an API that requires your header to have one content-type: application/x-www-form-urlencoded. This api takes json parameters and returns json. Using jquery I…
-
1
votes1
answer218
viewsPass object to proc sql server
Is there any way I can make a SP that receives an object? This is my SP ALTER PROCEDURE [dbo].[sp_alt_funcionarios] -- Add the parameters for the stored procedure here ( @id int, @nome varchar(60)…
-
1
votes0
answers87
viewsProblems with Google API authentication in Ruby
I’m developing a Ruby API that communicates google-api-ruby-client but when trying to authenticate I get some errors. example of my code: class GoogleService require 'googleauth' require…
-
1
votes1
answer39
viewsHow to initialize form using value from an angular service
I’m returning from mine API an integer, and then, with the angular need to show this value as default in this tag: <input type="text" formControlName="pacienteId" class="form-control"> I know…
-
1
votes1
answer326
viewsASP.Net Web API - JSON without accentuation %20 %C3%A7
I am consuming an api but the return JSON does not come with the correct accent. in place of the mirror comes %20, for example. in the request json I even put the encoding.UFT8. How can I code this…
-
1
votes0
answers135
viewsHow to configure the Slim 3 passthrough?
I’m trying to build a simple API for study with Slim Framework and Jwtauthentication. In case my path /auth returns a JSON containing the JWT token that will be used to access the other paths. But…
-
1
votes1
answer87
viewsSQL statement in Mysql with KURDATE(), does not display API result with PHP
In this SQL what is wrong? SELECT top.id_topatletas, top.idusuarios, top.posicao, top.workout, top.data_inicio, top.data_fim, user.idusuarios, user.nome FROM top_atletas top INNER JOIN usuarios user…
-
1
votes0
answers133
viewsExtract only numbers from a list
I’m using the package on the R fbRads to collect data from Facebook Ads. However, when I turn it into a data frame, I get a list of the values, rather than the numerical value. How can I separate…
-
1
votes0
answers236
viewsWhatsapp cutting text after equal character (=)
I realized that Whatsapp Web, when forwarding a message via link, for example with the link below, it will cut the character =:…
-
1
votes1
answer599
viewsCurl failed to send array
Well I have a small problem sending the data via Curl, when sending the data to the API returns me that there is one of the fields that is not an array: {"errors":["items deveria ser um Array"]}…
-
1
votes1
answer1085
viewsProblem calling api in React JS
I created a webapi in ASP.NET Core, and I need to consume it using React, the web api works normally, if I use Curl or Postman among others, it works normally. The problem starts when I use React,…
-
1
votes1
answer38
viewsHow to separate errors from a query in an expressjs api
What is the correct method to separate errors from a query? The current code compares the error manually with the message generated by mysql, in case the query may go wrong for several reasons,…
-
1
votes2
answers257
viewsPassing the token of an Angularjs controller to an Laravel API
I am trying to pass the token that I have my controller to authenticate into an API in Laravel. However I am encountering the error: "token_not_provided" Note: I am using the Jwtauth with Laravel…
-
1
votes1
answer64
viewsBing API Consumption
I need to get the address of a Bing API image: https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=pt-BR This API returns me a JSON that contains this information I want,…
-
1
votes1
answer133
viewsAPÍ Django-storages Dropbox url error Pattern
I am using the following API: https://django-storages.readthedocs.io/en/latest/backends/dropbox.html I have exactly everything configured, from the lib installed to the settings of Settings.py. A…
-
1
votes1
answer305
viewsEntity - Infinite loop in JSON conversion
What happens I’m having a problem using Entity with my application MVC. What happens is that when converting a class to JSON the program enters an infinite loop and ends up returning no-content…
-
1
votes1
answer604
viewsHow to take data from an array without using Index
I’m trying to get data through an API (bet365) it returns this data in JSON, I created a function to extract this data and transform into array It follows function: public Function api_football(){…
-
1
votes1
answer106
viewsForeach or for inside an Anynimous Type C#
I am mounting a return of an Api on JSON, And the comeback I ride in Anynimoustype I believe that’s what it’s called, in it I name the variables as they go to Json, but I needed to make a foreach to…
-
1
votes2
answers3021
viewsHTTP Status 415 - Unsupported Media Type
Follows code: var httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}");…
-
1
votes0
answers43
viewsUse EWS API with C#Reflection
I am trying to use the EWS API in SSIS Script Task, but the server does not have the corresponding dll: Microsoft.Exchange.WebServices.dll So using Reflection is the only solution I found, the dll…
-
1
votes0
answers124
viewsRecord API response with Angular/Ionic
I’m having a question with the Angular/Ionic I’m using to build an app. I own the following: import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from…
-
1
votes0
answers102
viewsHow to search using Google Maps Geocode
I would like to use the google api to click on the map and get the latitude and longitude <!DOCTYPE html> <html> <head> <title>Geocoding Service</title> <meta…
-
1
votes0
answers129
viewsHow to filter data by category in Entity Framework Core?
I am trying to filter the data from a query based on the parameters gestorId, projectManagerId and recursoId, however, I’m not sure if this is the best way to do this. I also need these parameters…
-
1
votes0
answers64
viewsSequelizedatabaseerror - Syntax error when creating an ARRAY field in Graphql with sequelize and mysql
I am developing a basic API for blog graphql with Sequelize and Mysql as a database, everything works perfectly until I try to create a new keyword field of the Array type, for blog posts, I believe…
-
1
votes2
answers687
viewsSequelize making incorrect select
I have an api in nodejs www: ... db.sequelize.transaction() .then(() => { server.listen(port); server.on('error', onError); server.on('listening', onListening); }) ... models: 'use strict';…
-
1
votes0
answers150
viewsHow to return a file through my API configured in ASP.NET MVC 5
I developed an API that searches images and now I need to deliver the files to download, so I created the following code: public HttpResponseMessage Download(string id) { Download download = new…
-
1
votes0
answers980
viewsHow to take or manipulate data inside subscribe - Angular
Unfortunately I can’t, even inside the subscribe, scroll through the variable fixtures$ I can send the data to html and show in the table. However I need to manipulate the data to save in the bank…
-
1
votes3
answers155
viewsHow do I catch a backend error and not log into the application?
Guys, good night, I researched several topics and tried several solutions and unfortunately I could not adjust the error. I am developing an application with Angular and my Python backend, at the…
-
1
votes0
answers61
viewsAPI bearer client authentication
I have a API that return token bearer, normal, as per image The question is this, it has an application MVC that consumes this API, and I want to put [Authorize] in the classes of that MVC…
-
1
votes1
answer624
viewsAPI request returns empty in mapped class
I have a problem trying to return the answer of a api in my class. When I try to run my list returns null instead of the api data My class Photo class Foto { final int AlbumId; final int Id; final…
-
1
votes1
answer17
viewsRun call in retrofit 2
I am having trouble creating the call with retrofit 2 to the following url: https://api.themoviedb.org/3/movie/2310?api_key=MINHA_API_KEY&language=pt-BR On android, the call I’m making is…
-
1
votes1
answer231
viewsValidation Lumen/Laravel does not work
I am creating an API using Lumen v5.8, and before saving the data in the database I am validating data from an array sent by the user but the data never pass the validation. Controller <?php…
-
1
votes0
answers43
viewsEncrypt lets for multiple domains with Ubuntu
I wrote a PHP script that creates new websites for my clients, with different domains for each site. This way, I can quickly create a new custom site for my customers. As an example, my domain is on…
-
1
votes0
answers205
viewsAuthentication on a website for viewing Power BI reports
You can log in to my website and use username (or e-mail) and password to automatically log into Power BI, creating a session or using some API? I would like to incorporate Power BI reports with…
-
1
votes1
answer1204
viewsHow to pick only 1 item within an array, JSON & PHP
I’m learning a bit of json and php, I was able to display the values with the saveoffline api.…
-
1
votes0
answers14
viewsSharing Facebook in SPA
Good afternoon. I’m having trouble sharing a post on a SPA site. I’m using the following code for such: FB.ui({ method: 'share_open_graph', action_type: 'og.shares', action_properties:…
-
1
votes1
answer281
viewsSwagger Json in Postman does not put the API URL
I am using the Swagger library on . NET CORE in a Web API to generate the documentation, below is my startup.Cs: public class Startup { public Startup(IConfiguration configuration) { Configuration =…
-
1
votes1
answer66
viewsGoogle Map gave error!
Hello, I am trying to add a map to my site using the API key but it appears like this: I followed the tutorial to avoid cheating me but it appears as a mistake on my page... someone can help me?…
-
1
votes2
answers2987
views"For Development purposes only" error with google maps
Hello i solved an error with google maps but soon after this error appeared here: Can someone tell me how I can solve this problem and put the normal map? Code: #map { height: 100%; width: 100%; }…
-
1
votes1
answer390
viewsTake information from the API and display in the HTML element
Save, I’m starting with Javascript and how I remove the values returned by the API and display in an HTML element? $(document).ready(function() { $.ajax({ type: "GET", url:…
-
1
votes1
answer40
viewsError system.net.webexception: 0 using the Ibmwiotp library
I’m working with the library Ibmwiotp to make a POST equipment on the IBM Watson Iot Platform. I have the following code: public void AddDevice(){ try{ ApiClient client = new…
-
1
votes1
answer141
viewsTag destination - mail tracking (JAVA)
Good afternoon, everyone! I am working with the maintenance of a JAVA application integrated with ERP J.D. Edwards, where we have an interface to retrieve tracking code information from the post…
-
1
votes0
answers327
viewsError "Cannot send a content-body with this Verb-type"
Guys, I’m having trouble with the mistake "Cannot send a content-body with this Verb-type.". I’ve changed the method to POST, but the API only accepts if the given method is GET. I’ve tried to send…
-
1
votes1
answer579
viewsListing an array within an angular JSON
Good morning gentlemen, I am using the IGDB (Games) api for the realization of an angular site 7(typescript), in it when receiving a JSON I receive only the gender ID, but if in the call…
-
1
votes0
answers133
viewsRestsharp taking his time making the first requisition
I am making an application using Xamarin Native and I decided to use Restsharp to make the requests to my API, the problem is that the first request made takes a few seconds (some 3) to be made,…