Dynamic vars in cfloop have the same value
Hi All,
I'm fooling around with the Google API's and am trying to output the result of a CFHTTP call for each user found in a db table. My code seems to process ok...no errors but the value of the two variables I'd expect to exist are the same. I'm sure I'm doing something silly in the loop that messing it up. Any thoughts?
<cfloop query = "getTokens">
<cfhttp url="https://www.googleapis.com/latitude/v1/currentLocation" result="#tokName#">
<cfhttpparam type="header" name="Authorization" value="OAuth #application.token.access_token#" >
<cfhttpparam type="url" name="granularity" value="best" >
</cfhttp>
<cfset "apidata#tokName#" = #DeserializeJSON( evaluate("#tokName#.FileContent") )#>
</cfloop>
Thx!
PS - Also, how to you CFDUMP a dynamically named var such as the one created in the code above?
