Re: SmarterStats API
Hmm.. That helps a little bit James. That defines the complex type returned from the Statistics.asmx service. I'm after the complex type that is returned from the Query.asmx service. It doesn't help that the Query.asmx SmarterStats API is undocumented and unsupported. - Because this is an undocumented web service call, they are also unsupported. - http://www.smartertools.com/forums/t/16645.aspx What you sent does give a little insight into their objects tho.. I will keep searching. Any other thoughts? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316697 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: SmarterStats API
Try cfdump var=#getinfo# -Original Message- From: Jeff Becker [mailto:jpbec...@yahoo.com] Sent: Thursday, December 11, 2008 4:12 PM To: cf-talk Subject: SmarterStats API Hello everyone, I am having trouble with the SmarterStats API and utilizing ColdFusion to gather stats. I have successfully made the call and am getting the results back. However, I think because my return of complex type(??), I'm not sure how to interpret/display the results. Based on the minimal documentation, I was hoping to get back. QueryItem Visits id=123 89 id=124 52 id=125 5 The code I have is below. The cfdumps give back just ugly object of com.smartertools.smarterstats.query.ExecuteQueryResponseExecuteQueryResu lt OBJECTS.. not very useful. The attempt below is what I tried in traversing these objects. See code below. Any ideas? cfset query=select * from ftopqueriesbypage(1,'2008-09-08T00:00:00','2008-09-09T00:00:00',20,'/vie wArticle.cfm') order by Visits desc cfinvoke webservice =http://MYSITE.com:/services/query.asmx?wsdl; method =ExecuteQuery returnVariable = getinfo cfinvokeargument name=authUserName value=USERNAME/ cfinvokeargument name=authPassword value=PASSWORD/ cfinvokeargument name=AuthorizationCode value=WEBSERVICES_AUTH_CODE/ cfinvokeargument name=SiteID value=1/ cfinvokeargument name=query value=#query#/ /cfinvoke !---cfdump var=#getinfo#--- cfset a = getinfo.get_any() !---cfdump var=#a#--- cfloop index=x from=1 to=#arrayLen(a)# cfoutput#x# - #a[x].toString()# - - BRBR/cfoutput /cfloop ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316659 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SmarterStats API
Yes. Tried that. It is currently commented out in the code... among other things. That just gives the object methods all printed out, not much help as I try to get at the data located SOMEWHERE!??? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316661 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SmarterStats API
This is the same issue Sebastian is having as well. I too get the get_any() method and am just uncertain how to access data. Related: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:58292 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316665 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SmarterStats API
Is that a different call to the one in their docs? http://www.smartertools.com/portal/KB/a161/how-to-use-web-services-to-get-viewshitsvisitsbandwidth.aspx mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/12/12 Jeff Becker jpbec...@yahoo.com: Hello everyone, I am having trouble with the SmarterStats API and utilizing ColdFusion to gather stats. I have successfully made the call and am getting the results back. However, I think because my return of complex type(??), I'm not sure how to interpret/display the results. Based on the minimal documentation, I was hoping to get back. QueryItem Visits id=123 89 id=124 52 id=125 5 The code I have is below. The cfdumps give back just ugly object of com.smartertools.smarterstats.query.ExecuteQueryResponseExecuteQueryResult OBJECTS.. not very useful. The attempt below is what I tried in traversing these objects. See code below. Any ideas? cfset query=select * from ftopqueriesbypage(1,'2008-09-08T00:00:00','2008-09-09T00:00:00',20,'/viewArticle.cfm') order by Visits desc cfinvoke webservice =http://MYSITE.com:/services/query.asmx?wsdl; method =ExecuteQuery returnVariable = getinfo cfinvokeargument name=authUserName value=USERNAME/ cfinvokeargument name=authPassword value=PASSWORD/ cfinvokeargument name=AuthorizationCode value=WEBSERVICES_AUTH_CODE/ cfinvokeargument name=SiteID value=1/ cfinvokeargument name=query value=#query#/ /cfinvoke !---cfdump var=#getinfo#--- cfset a = getinfo.get_any() !---cfdump var=#a#--- cfloop index=x from=1 to=#arrayLen(a)# cfoutput#x# - #a[x].toString()# - - BRBR/cfoutput /cfloop ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316677 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4