<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Using the RescueTime Embed and Data API</title>
	<atom:link href="http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/</link>
	<description>Our official blog, where we discuss product updates, general productivity tips, and interesting tidbits from our hundreds of millions of hours of attention data.</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:21:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Mark Wolgemuth</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1689</link>
		<dc:creator><![CDATA[Mark Wolgemuth]]></dc:creator>
		<pubDate>Wed, 16 Sep 2009 15:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1689</guid>
		<description><![CDATA[Thanks for the feedback!
I&#039;ll change the code to ignore an unedited value.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the feedback!<br />
I&#8217;ll change the code to ignore an unedited value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sallmen</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1688</link>
		<dc:creator><![CDATA[Michael Sallmen]]></dc:creator>
		<pubDate>Wed, 16 Sep 2009 14:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1688</guid>
		<description><![CDATA[A tip for the frustrated:
I kept getting getting a 500 or {&quot;error&quot;: null} message until I realized that the server rules for my API key still contained the default &quot; ip/mask or hostname or domain name &quot; prompt string. I cleared that out and it worked immediately!

Thanks very much for this API! You might want to think about ignoring or removing the default prompt string for people like me who think leaving a text box alone means it&#039;s not going to affect the outcome.]]></description>
		<content:encoded><![CDATA[<p>A tip for the frustrated:<br />
I kept getting getting a 500 or {&#8220;error&#8221;: null} message until I realized that the server rules for my API key still contained the default &#8221; ip/mask or hostname or domain name &#8221; prompt string. I cleared that out and it worked immediately!</p>
<p>Thanks very much for this API! You might want to think about ignoring or removing the default prompt string for people like me who think leaving a text box alone means it&#8217;s not going to affect the outcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Wolgemuth</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1686</link>
		<dc:creator><![CDATA[Mark Wolgemuth]]></dc:creator>
		<pubDate>Wed, 16 Sep 2009 00:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1686</guid>
		<description><![CDATA[Bah, I forgot to add those too. Sorry Greg, I&#039;ll update the docs again. Thanks for your feedback and example!]]></description>
		<content:encoded><![CDATA[<p>Bah, I forgot to add those too. Sorry Greg, I&#8217;ll update the docs again. Thanks for your feedback and example!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Bray</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1685</link>
		<dc:creator><![CDATA[Greg Bray]]></dc:creator>
		<pubDate>Tue, 15 Sep 2009 23:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1685</guid>
		<description><![CDATA[Still had to do a bit of snooping around since the http://www.rescuetime.com/apidoc page is missing information about the format=csv and rtapi_key=.... parameters, but after a few tries I got it to work. If anyone else is curious the following is a sample URL that will return a list of &quot;Date,Time Spent (seconds),Number of People,Activity,Category,Productivity&quot; data in CSV format for Sept 14th using an hour chunk size:

https://www.rescuetime.com/anapi/data/?op=select&amp;vn=0&amp;pv=interval&amp;rk=activity&amp;rs=hour&amp;rb=2009-09-14&amp;rb=2009-09-15&amp;format=csv&amp;rtapi_key=YourKeyHere

Playing around with the various parameters should let you customize the data that gets exported. This is pretty cool! The data drops right into Excel or Access for analysis with Pivot Charts and Tables. Keep up the awesome work!]]></description>
		<content:encoded><![CDATA[<p>Still had to do a bit of snooping around since the <a href="http://www.rescuetime.com/apidoc" rel="nofollow">http://www.rescuetime.com/apidoc</a> page is missing information about the format=csv and rtapi_key=&#8230;. parameters, but after a few tries I got it to work. If anyone else is curious the following is a sample URL that will return a list of &#8220;Date,Time Spent (seconds),Number of People,Activity,Category,Productivity&#8221; data in CSV format for Sept 14th using an hour chunk size:</p>
<p><a href="https://www.rescuetime.com/anapi/data/?op=select&#038;vn=0&#038;pv=interval&#038;rk=activity&#038;rs=hour&#038;rb=2009-09-14&#038;rb=2009-09-15&#038;format=csv&#038;rtapi_key=YourKeyHere" rel="nofollow">https://www.rescuetime.com/anapi/data/?op=select&#038;vn=0&#038;pv=interval&#038;rk=activity&#038;rs=hour&#038;rb=2009-09-14&#038;rb=2009-09-15&#038;format=csv&#038;rtapi_key=YourKeyHere</a></p>
<p>Playing around with the various parameters should let you customize the data that gets exported. This is pretty cool! The data drops right into Excel or Access for analysis with Pivot Charts and Tables. Keep up the awesome work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Wolgemuth</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1675</link>
		<dc:creator><![CDATA[Mark Wolgemuth]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 23:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1675</guid>
		<description><![CDATA[Thanks for the feedback! That&#039;s what I get for publishing code without docs! :)

For reference, the base URL is:

&lt;code&gt;https://www.rescuetime.com/anapi/data&lt;/code&gt;

So, I should set reasonable defaults and update the docs per your questions, but right now you would:
&lt;code&gt;
1) Create a service object:

svc = Service(&#039;https://www.rescuetime.com&#039;)

2) Create a AnalyticApiKey object tied to that service:

akey = AnalyticApiKey(&#039;THEKEYSTRINGFROMAPISETUPPAGE&#039;, svc)

You get the key name / key string from the Setup Data API page.

3) Create as many data requests you want for that key:

d1 = ResponseData(akey, {&#039;operation&#039;: &#039;select&#039;, &#039;perspective&#039;: &#039;rank&#039;, &#039;restrict_kind&#039;: &#039;overview&#039;, etc... add more params }
d2 = ResponseData(akey, {&#039;operation&#039;: &#039;select&#039;, &#039;perspective&#039;: &#039;interval&#039;, &#039;resolution_time&#039;: &#039;hour&#039;, &#039;restrict_kind&#039;: &#039;activity&#039;, etc... add more params }

4) Call sync to get data

d1.sync()
d2.sync()

The returned data is in: d1.object and d2.object

Hope that helps!]]></description>
		<content:encoded><![CDATA[<p>Thanks for the feedback! That&#8217;s what I get for publishing code without docs! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For reference, the base URL is:</p>
<p><code><a href="https://www.rescuetime.com/anapi/data" rel="nofollow">https://www.rescuetime.com/anapi/data</a></code></p>
<p>So, I should set reasonable defaults and update the docs per your questions, but right now you would:<br />
<code><br />
1) Create a service object:</p>
<p>svc = Service('<a href="https://www.rescuetime.com" rel="nofollow">https://www.rescuetime.com</a>')</p>
<p>2) Create a AnalyticApiKey object tied to that service:</p>
<p>akey = AnalyticApiKey('THEKEYSTRINGFROMAPISETUPPAGE', svc)</p>
<p>You get the key name / key string from the Setup Data API page.</p>
<p>3) Create as many data requests you want for that key:</p>
<p>d1 = ResponseData(akey, {'operation': 'select', 'perspective': 'rank', 'restrict_kind': 'overview', etc... add more params }<br />
d2 = ResponseData(akey, {'operation': 'select', 'perspective': 'interval', 'resolution_time': 'hour', 'restrict_kind': 'activity', etc... add more params }</p>
<p>4) Call sync to get data</p>
<p>d1.sync()<br />
d2.sync()</p>
<p>The returned data is in: d1.object and d2.object</p>
<p>Hope that helps!</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Bray</title>
		<link>http://blog.rescuetime.com/2009/09/14/using-the-rescuetime-embed-and-data-api/#comment-1674</link>
		<dc:creator><![CDATA[Greg Bray]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 22:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rescuetime.com/?p=273#comment-1674</guid>
		<description><![CDATA[I&#039;d love to be able to pull the data into Excel or Resolver One for analysis, but after taking a quick look I can&#039;t figure out how to use the raw HTTP Query Interface. The api documents lists some of the parameters, but there is no reference to the actual URL that you use to access the data. Any chance you could provide a sample of the full URL used to get category data for a given date range in csv format?

I tried reading the Python wrapper code, but it doesn&#039;t contain a url either (seems to reference &quot;localhost:3000&quot; as the servername. I tried snooping around the url used for embedding charts, but I couldn&#039;t figure it out. my guess is something like:

https://www.rescuetime.com/anapi/?op=select.....

but that returns a 404. Also I&#039;m not sure where to insert the api key. Is it a parameter or part of the url path? If it is a parameter, what name should we use? Also guidance as to which parameters are optional and which are required would be helpful.

Sounds awesome though! Keep up the great work!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d love to be able to pull the data into Excel or Resolver One for analysis, but after taking a quick look I can&#8217;t figure out how to use the raw HTTP Query Interface. The api documents lists some of the parameters, but there is no reference to the actual URL that you use to access the data. Any chance you could provide a sample of the full URL used to get category data for a given date range in csv format?</p>
<p>I tried reading the Python wrapper code, but it doesn&#8217;t contain a url either (seems to reference &#8220;localhost:3000&#8243; as the servername. I tried snooping around the url used for embedding charts, but I couldn&#8217;t figure it out. my guess is something like:</p>
<p><a href="https://www.rescuetime.com/anapi/?op=select...." rel="nofollow">https://www.rescuetime.com/anapi/?op=select&#8230;.</a>.</p>
<p>but that returns a 404. Also I&#8217;m not sure where to insert the api key. Is it a parameter or part of the url path? If it is a parameter, what name should we use? Also guidance as to which parameters are optional and which are required would be helpful.</p>
<p>Sounds awesome though! Keep up the great work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

