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
votes4
answers1576
viewsPOST API Rest JSON
I have a form in HTML which should send data to a server in format JSON. How I format this input data and send to a Rest API the JSON data the way I described below? In my view I need to do a POST,…
-
1
votes2
answers1263
viewsSponse() in XML with Laravel
I have studied about developing Apis with Laravel, a quick question, it is possible to return an XML instead of a json? instead of doing: return response()->json($json); do something like: return…
-
1
votes0
answers31
viewsError when querying R API created with Plumber
Friends, I created an api in Plumber , when I query this api directly in the browser I can see the data , but when I use the GET() function I have the following error : Error in prettyNum(.…
-
1
votes1
answer1655
viewsUncaught Typeerror: Cannot read Property 'NOME' of Undefined
I got a problem that’s killing me... I’m taking an API and putting it in a table there in the html, I made the Function to mount the td and everything, but when it arrives to put the API data in the…
-
1
votes1
answer119
viewsJavascript array in dates
I’m getting data from an API and I put it inside a table. The following are the codes I used to pull the api and put inside the table var botaoAdicionar = document.querySelector("#buscar-viagem");…
-
1
votes0
answers164
viewsPass R parameters in an api with Post method?
Friends, I created an R api using Plumber with the post method. but when it comes to calling this api and passing the parameters I’m not getting , I call this way: resp <- POST("http:url", body =…
-
1
votes0
answers39
viewsSending 1 json at a time to API
Hello. I have a question that I am not able to resolve. I’m doing a PHP integration of Opencart with the Suasvendas API, but the API only accepts 1 json at a time to register, IE, I need to send…
-
1
votes0
answers26
viewsData security in a Plumber R api
Friends, I created an api with Plumber for client data transfers, that is, confidential data. In the address of the url goes the ip of my machine. Regarding the security of data traffic and the…
-
1
votes0
answers267
viewsSlim API returns error only with AJAX request
Hello, I developed an API using the Slim Framework and testing one of the endpoints that with Postman works perfectly but when I request with AJAX, although it is sending exactly the same data that…
-
1
votes1
answer2689
viewsWhat is the use of pipe() and map() functions in Angular 6?
I learned that I have to use these two functions when I’m working with HTTP requests, I learned that I have to use these two functions as a cake recipe, which you use and that’s it, I wanted to know…
-
1
votes1
answer1708
viewsConsume API with React
someone can help me how I can get this API ## Cadastro ```sh $ curl --request POST \ --url https://dev.people.com.ai/mobile/api/v2/register \ --header 'content-type: application/json' \ --data '{…
-
1
votes2
answers151
viewsPHP API to use in Xamarin
I am creating an API to create the Mysql connection. Can I use PHP to create this API? Can I normally use this API on iOS? I’ve seen it in many places (example) that I can use this API for Android,…
-
1
votes2
answers124
viewsPHP Web Service with INNER JOIN
I am creating API for consumption in Ionic applications, but I’ve been working for 2 weeks on one of these api’s, where I link data in more than one table with Inner Join. I tried to do as in my php…
-
1
votes1
answer201
viewsUse data from a request in a global variable
I’m having a difficulty that I’m sure is simple for you! var request = require('request') var a var b request('https://exrates.me/openapi/v1/public/ticker?currency_pair=eth_usd', function (error,…
-
1
votes1
answer544
viewsBasic Authentication in Webservice Rest C#
good afternoon!! I’m implementing a Webservice Rest but I’m not able to call the Basicauthentication method another class. [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,…
-
1
votes0
answers44
viewsPassword Recovery WORDPRESS REST API
Good morning, I am developing an application, and I use a Wordpress web system. This way I use a REST API plugin to get the information pertinent to the system. However I am not knowing how to do to…
-
1
votes1
answer243
viewsAccess the Laravel API route 5.7
I’m learning to use Laravel as a Rest API and went to test by Postman a route that returns a string, but I can’t find an error. Returns not found. Address: http://127.0.0.1:8000/api/dot/ <?php…
-
1
votes1
answer43
viewsUser with own page
I’m making a portal, and to register need Cpf and email. Then I send a confirmation email, it clicks on the link and its situation in my comic changes. So the user can access the portal. It will…
-
1
votes1
answer151
viewsHow to queue requests for an api made with Laravel?
I have an api made in Laravel 5.6, where requests cannot be executed simultaneously and are queued to be executed in the request order. It’s hard to explain an example, but if anyone can help me I’d…
-
1
votes2
answers867
viewsHow can I echo a JSON in PHP?
Look I’m doing some tests with an api where I’m getting this json: [ { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "rank": "1", "price_usd": "18880.8", "price_btc": "1.0", "24h_volume_usd":…
-
1
votes2
answers664
viewsVideo continues to play when the modal closes
I created a modal that opens when clicking on an image, inside this modal will have a youtube video and a small description on the side, however whenever I close the modal the video continues to…
-
1
votes1
answer569
viewsProblems with Javascript API
I am developing an application that involves music and, to facilitate development, I am using the API Retrojs. However, I am unable to use it. The following errors appear in the Console:…
-
1
votes0
answers22
viewsUpload file between API’s Node.Js
Hello, I have an API in nodejs, and I need to send a file to another API. Does anyone know how to forward the request? I’m using the https.request (https://nodejs.org/api/https.html) to make the…
-
1
votes1
answer95
viewsDeveloping Apis with Laravel or Micro Frameworks?
Good night! After analyzing my project I decided to divide the whole project into Apis, it will have an api for the login, another for client registration and so on. Ah beats such doubt will be that…
-
1
votes3
answers4910
viewsConsuming an API with Angular
I’m trying to consume an API with Angular 5 but it returns me this error: " Error trying to diff '[object Object]'. Only arrays and iterables are allowed at DefaultIterableDiffer.diff". Response…
-
1
votes1
answer404
viewsError creating a table with sequelize "Typeerror: Cannot read Property 'sequelize' of Undefined"
I have the following error when trying to create a table: const Usuario = app.db.sequelize.define('user', { Typeerror: Cannot read Property 'sequelize' of Undefined My folder structure: My…
-
1
votes0
answers557
viewsInternal error Payments paid market sandbox
Good night. I’m doing integration, sandbox, in the paid market and I’m making the following mistake: { "message": "internal_error", "error": null, "status": 500, "cause": [] } The body of the…
apiasked 6 years, 9 months ago Emerson de assis silva 11 -
1
votes1
answer47
viewserror using waitActivityIndicator, how to resolve?
I am making a connection via web api in my application, so it is not accepting the use of "waitActivityIndicator", indicates that it does not exist in the current context, below my code, someone…
-
1
votes0
answers125
viewsCapture Custom Fields(custom Fields) from Trello API
Gentlemen, I’m building a system that has integration with Trello. When performing the following HTTP command: curl --request GET \ --url…
-
1
votes1
answer35
viewsJSON API in aqueduct doubt
I created an API in aqueduct initially. In it I created a serial model class and inside it I have information about autor, ano, idserie , blz there wanted to create a class model episodes she would…
-
1
votes1
answer46
viewsGET complex in Node.js API
Following good practices, what would be the most appropriate way to perform a complex GET to retrieve the products according to their properties? Imagine we have the methods for the Product Business…
-
1
votes0
answers66
viewsProcessing json information in Javascript
I am working with Flowxo making a BOT for Telegram. In it, I need to process some direct information from an API in json format. I can include a Javascript code in the process. The process works…
-
1
votes1
answer91
viewsMount PDF via website
I’m developing a project for a website, where it receives information via input and returns a PDF formatted with this information. I believe that one solution would be to develop a API passing the…
javascript html5 api web-service web-applicationasked 5 years, 6 months ago Adriano Henrique Santana 28 -
1
votes1
answer229
viewsReturn json api on Ionic 3
I have the following problem, I am using a api ,that I created , when I use the method find me step one email and he returns to me if he found the email and senha Method buscarEmail(){…
-
1
votes1
answer729
viewsLaravel consuming API and transforming object to array
Next I’m making a requisition like get and is returning me one objeto and would like this to be an array , have tried using $dados= Array.of($response->getBody()->getContents()); but of error!…
-
1
votes1
answer411
viewsGoogle Drive API to search only images
I recently started to study the Google Drive API. I am able to list all the files in Drive and I have access to all its attributes. However, I was asked to search only for the image files. What did…
-
1
votes1
answer269
views3 new user post questions with spring boot
am having the following questions when saving a user in an api using spring boot. 1)The best way to check if the email already exists is this? 2)in case I am sending the id of the user that has just…
-
1
votes0
answers75
viewsCommunication with jwt between two APIS
Staff would like a recommendation: I own an angular site that communicates with an API[API 1] Asp net core and authentication is done via jwt token. This API communicates with another API[API2] also…
-
1
votes0
answers85
viewsLaravel 5.4 Passport - Authentication 3rd party login
I have this system that I developed. It is developed in reactjs + Redux + sagas in frontend and RESTFUL API in backend in Laravel. BUT in the company in which I work there is a requirement that the…
-
1
votes0
answers218
viewsHow to make a POST with an Httpentity in the correct format?
Good morning, I’m performing a POST for a API using the HttpEntity of Spring, but I’m not sure if the POST that I’m performing is being done in the right way, and I’m having mistakes in creating a…
-
1
votes1
answer341
viewsConverting JSON to android arraylist
Good afternoon! I’m trying to consume an API on android but I’m having difficulty because in the JSON file it brings a category, I tried to add the variable "acronym" but it did not work; the JSON…
-
1
votes1
answer216
viewsDDD + Entityframework + Migrations + SQL Server
Hello, I have a Solution that I am implementing the DDD architecture with Entityframework, Migrations and SQL Server! However I am not able to connect to my local database when performing the…
-
1
votes1
answer490
viewsHow to check JWT on each request
I’m doing a login system on php and trying to authorize with JWT. I’m not using any library, I made a class called Jwt that I pass the vestments and Token and also step the token and returns me an…
-
1
votes0
answers719
viewsWhen receiving notification from Paypal with payment status, it gives error 500 when pushing on my API
The code below is the PUSH created for Pagseguro to send me the notification of the status of my payment. But the error returned is 500, and in their forum no answers so far. Someone who has been…
-
1
votes1
answer171
viewsGET Woocommerce Request with Criterion by Date - restSharp
People I’m doing an integration with C# and the Woocommerce API, my situation is the following, I can communicate with the API through restSharp and I can fetch the site requests through the access…
-
1
votes4
answers259
viewsError While Consuming Api at Angular
Good Afternoon I’m consuming an api (Pokemon), But it doesn’t work, Pokelistgemcomponent.html:6 ERROR Error: Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only…
-
1
votes0
answers126
viewsHow to make POST in android studio?
I’m trying to do a POST for my local API but I’m finding some problems and I’m not getting it right what I’m doing wrong. POST that works on Postman is with a body more or less like this: [ {…
-
1
votes1
answer258
viewsRestful API with Nodejs and Mysql with Multiple Columns (I want to return json levels)
all right. Someone can help me with a matter of Angular, or the API with Node.js? I consult Mysql in an api with Node.js with Inner Join in 2 tables, but how to expect mysql returns me everything in…
-
1
votes1
answer403
viewsError while accessing route released with Spring boot
Good afternoon I am having a problem in releasing routes for my application made with Spring boot. The problem is that the "/home" main route asks for the JWT token to access it, but it is…
-
1
votes1
answer63
viewsDifficulty with FETCH API authorization
Staff I’m having a little trouble to carry out an API authorization so I’m doing the code fetch('https://api.api-futebol.com.br/v1/',{ "method":"GET", "headers": { "Authorization: Bearer…