Hi,
I’m struggling on something that might be easy for some of you.
My goal is to set all the IDs from a JSON file in a variable that I could reuse in a second API call.
In my first call, I get the following result:
{
“items”: [
{
“id”: 96047,
“name”: “my first test”
},
{
“id”: 96048,
“name”: “my second test”
}
],
“total”: 2
}
In the second call to the API, I’d like to give the IDs (96047 and 96048) as parameters. So each time I run the first call, the result set would be stored into a variable called by the second API call.
The second API is formatted the following way:
{
“ids”: [
“96047”,
“96048”
],
“type”: “test”
}
Any hint would be greatly appreciated.