Skip to main content

All Questions

Tagged with
-1 votes
1 answer
51 views

Cannot pass value from service to component

I'm learning to use Angular. I've done some API with Spring-boot and I've created some components in Angular to view them, but I can't view anything. I've created in angular a Service to do all the ...
Andrea Crinella's user avatar
1 vote
2 answers
43 views

how to pass json array in params to get rest api in nodejs

I have one GET API which is having array in the input. I want to call that API through in my node.js project. I have tried many options but none worked. This is my REST Request. let request = await ...
akilesh's user avatar
  • 25
0 votes
0 answers
37 views

get method with Undefined array key 'id' => $_GET['id'] [duplicate]

<?php $config = require('config.php'); $db = new Database($config['database']); $heading = 'Note'; $currentUserId = 1; $note = $db->query('select * from notes where id = :id',[ 'id' =...
chancolak's user avatar
0 votes
2 answers
63 views

Axios return data not updating a list

I have this list called reqs_needed. I want to update it based on the information an Axios request returns. This Axios.get request is inside a for loop because I want to get data back a certain number ...
Nayeemur's user avatar
0 votes
1 answer
134 views

How to do a Async get() request sending an array of ids, but don't want to loop through the whole async get request for array

for (let i = 0; i < this.selectedworksheets.length; i++) { specific_templateRowId = await this.httpClient.get < Array<number>> (`${GLOBAL.BASE_URL}/templaterow/${this....
Mohammad Zarak's user avatar
-2 votes
2 answers
34 views

php echo each item in different arrays from json_decode [duplicate]

I can't get php to list each item from the arrays with foreach($decodedData->data->array as $values) { echo $values->title . "\n"; While I'm trying it to list as such (...
Requiem's user avatar
  • 23
2 votes
2 answers
667 views

Step Function Mapping

Use Case: I would like to map over an array of SKUs in the JSON received, do a GET request with the SKU, obtain the product_id from that request, and re-create the array, replacing the SKUs (in order) ...
Luke's user avatar
  • 1,189
0 votes
1 answer
206 views

P5js, How do I get position of a color pixel using get()?

I'm a p5js beginner. Hello! :) I'm tring to place ellipse on blue pixels of the image. I've briefly made an image to show what I'm tring to do. explanation image I thought I could get the position of ...
Sue's user avatar
  • 1
0 votes
1 answer
136 views

Trying gets(string) function in C but program crashes when I input key

I am building a Password Manager Program in C for a school assignment and at the moment of execute the following function, the program crashes. I first call it on this case statement. case 1: /...
Christian D'Albano's user avatar
0 votes
1 answer
113 views

Gets error when getting data from API in Swift: "Expected to decode Dictionary<String, Any> but found an array instead."

I am new to swift, and currently trying to get data from this API, but this error keeps popping up in the log: "Expected to decode Dictionary<String, Any> but found an array instead."....
davidmark's user avatar
3 votes
0 answers
527 views

Lodash get last item in array in path

I'm using Lodash to get the following data: dateSeen: _.get(record, 'availableDates.0.dateSeen.0'), However, instead of getting the first item in the availableDate array, and then the first item in ...
fxfuture's user avatar
  • 1,940
0 votes
1 answer
103 views

multi array fetch language with $_GET['en'] PHP

i have little complex array with languag english and french, i just want switch with button $_GET['lang-fr'] and $_GET['lang-en'] that my array and code with foreach... i have array multidmension, ...
user avatar
2 votes
1 answer
62 views

Using an array with Ajax GET URL to step though one at a time with each button click

I'm trying to use Ajax GET URL to get the post content of three WordPress posts on the same domain. I have a single button and the URLs in an array in the script and it works, but all three URLs are ...
Mike's user avatar
  • 23
2 votes
1 answer
480 views

Passing json_encoded PHP array to JavaScript function

I am trying to take a PHP array and pass it into a JavaScript function, so I can send it in a GET request. I tried to use JSON encode to pass it through, but nothing seems to work. JavaScript does not ...
user19626118's user avatar
0 votes
0 answers
117 views

how can i get total_pages from themoviesdb-api and save it to a variable?

i have the following function: const getTotalPages = async () => { const selectedGenre = getSelectedGenre(); const discoverMovieEndpoint = '/discover/movie'; const requestParams =`api_key=${...
chylinski's user avatar

15 30 50 per page
1
2 3 4 5
24