So I am working with this API and it auto calculates the delivery fee based on the address you input. Here’s the API docs I am using https://developer.doordash.com/en-US/api/drive#operation/DeliveryQuote So when I add my values to my form and get my data, it logs the fee in my console like this My issue is how do I get this value from
Tag: api
Get the id of an object in a json request? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago. Improve this question So I have to get the first object of this list: } I don’t know beforehand the IDs [‘2489’] and
WebSockets streaming third party API to multiple subclients
We have a data-driven application where our backend continuously fetches data from a third party server and then feeds it over websocket to our clients frontend. Now the issue is that whenever each client will come the same data has to be fetched twice for both of them which is deemed unnecessary. Suppose the following code (in PHP for example)
Getting an array of Promises after async await
i’m trying to create an array of the daily forecast mapping over an array with cities. I’m trying to map over the array of the cities making an api call for each one of them once the page loads. I keep on getting an array of Promises such as this : Favorite Page component: Service with the api call :
leaflet js map not updating marker and circle point when i search some another city dont know what is problem in code? See picture
when I search city in search bar than another city it show marker and circle on both location previous city and current city like so. if u see picture it will tell you what i am saying. help me to imporve the code. See problem Answer You would need to clear the previous layer from the map instance. You can
POST net::ERR_NAME_NOT_RESOLVED
I’m trying to create a simple web application form. It requires the user to input their information, and click submit which ideally would hit an api and store the information somewhere like dynamodb. I have this code which is returning a response error POST net::ERR_NAME_NOT_RESOLVED For the life of me, I can’t figure out what’s wrong here… It references the
Refresh data through a new GET request – React Dropdown
I have this Dropdown Menu (done with MUI) which allows to choose the day value. When it changes, I’d like it to make a new GET request with the new parameter, but I don’t know how to do it as it uses useEffect. My function to fetch data My dropdown menu : Answer You can add day as dependency in
Can’t update state to change display on page during api call
I have a page called Dashboard and on this page I have a component called Dropzone which is used for uploading a file to the page. When a file is uploaded, it calls the onDrop() callback where I POST the file to my api, and I then try to sent a GET request to my api at /api/machines/{hash}. I want
How to generate four choices for users without two choices being the same?
I’m using an API to create an anime quiz. I’m also using Math.random() to create four choices for the user to click on. But I’m facing two problems. Firstly when the user is presented with the first set of 4 choices, there’s a possibility that two are identical. I’d like all four choices to be distinct from each other. Secondly
How can i get formdata with .net core web api and vue.js
I am trying to write an announcement system. i am using vue 2 and net core 3.1. The announcement has a photo, title, and content. (The department id field is static for now.) I’m trying to send the announcement’s information with the photo in the formdata, but the api can only capture the photo. So where am I going wrong?