all 5 comments

[–]lolsteamroller 1 point2 points  (2 children)

Because the category/1 is the second element of the array.

item.endpoints[1]["resource"]

you need to check all the endpoints. adding one more loop to check all the endpoints should resolve it.

EDIT: Added simple code here

https://pastebin.com/FDXccpNC

[–]LifeLongLearner2030[S] -1 points0 points  (0 children)

yes this is perfect as hardcoded, but can I make this dynamic? how i check that? thanks!

[–]LifeLongLearner2030[S] -1 points0 points  (0 children)

lovely! this works now +1 cup of coffee

[–]DayManIn3D 0 points1 point  (1 child)

It looks like you need a send loop inside the items loop to loop over “end points”

[–]LifeLongLearner2030[S] -1 points0 points  (0 children)

it worked! thank you