urlfetch issues

I’m trying to fetch data from an api that requires 2 strings. Below is what I have tried, but it doesn’t work. Any suggestions?

!test Query1 Query2
$(eval cur=$(query).split(' '); 
function conv(c1, c2) {
xc=$(urlfetch https://some.api.io/latest?base=c1&symbols=c2); }

Hiya, see this example how to nest variables inside an urlfetch with eval: How do i put a javascript variable in $(urlfetch) url

Thank you. I’ll give it a try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.