tag:help.lighthouseapp.com,2008-09-20:/discussions/suggestions/259-live-feed-of-lh-activityLighthouse: Discussion 2012-07-20T12:23:49Ztag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-10T15:42:36Z2009-06-20T20:09:20ZLive feed of LH activity<div><p>It would be incredibly sweet to be able to get an XMPP feed (or
other push-style feed) of a Lighthouse's activity. I'd like to make
a chatbot to announce when certain things happen on the LH (and in
our Git repo).</p>
<p>I know that's a pretty big deal to implement, but I figure it's
worth asking.</p></div>peejatag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-10T15:44:42Z2009-06-20T20:09:20ZLive feed of LH activity<div><p>We actually had a very similar idea and I'm not sure if some of
the team have hacked on it yet or not. Let me check on that today
and get back to you.</p></div>Will Duncantag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-10T19:42:15Z2009-06-20T20:09:25ZLive feed of LH activity<div><p>ejabberd was a bit too much hassle to deal with, so we added
http callbacks. It currently powers the Tender Support ticket
integration. If you're using the Lighthouse API gem, you can just
add a CallbackHandler class. This lets you setup a callback URL
that gets some JSON posted on every event.</p>
<pre>
<code class="ruby"># lighthouse-api gem
module Lighthouse
# ... other classes
class CallbackHandler < Base
end
end
# your code
Lighthouse.account = "foo"
callback = Lighthouse::CallbackHandler.new
callback.url = "http://myserver.com"
callback.project_id = 1
callback.save</code>
</pre>
<p>This is still pretty experimental. We may change the formats a
bit, or lock down the number of callbacks you can use based on your
plan. Once we release the new api with support baked in, you can
consider this "final".</p>
<p>Please do play around with it and share what you come up
with!</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-14T23:03:11Z2009-06-20T20:10:50ZLive feed of LH activity<div><p>I'd settle for a legible RSS feed that I could give to people
who wanted to see what was going on in our project.</p></div>self+lucidmactag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-14T23:27:56Z2009-06-20T20:10:50ZLive feed of LH activity<div><p>rss feeds already exist in Lighthouse though.</p></div>Will Duncantag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-14T23:36:45Z2009-06-20T20:10:51ZLive feed of LH activity<div><p>Will given that I asked the Q I obviously don't know how to find
them. Can you give me a clue? I did look.</p>
<p>M.</p></div>self+lucidmactag:help.lighthouseapp.com,2008-09-20:Comment/219652008-12-15T00:18:49Z2009-06-20T20:10:51ZLive feed of LH activity<div><p>My apologies, I think I originally assumed you were inquiring
about a specific type of feed vs the general account/project
feeds.<br></p>
<p>We probably should have a small rss option in the UI, but in
order to cut down clutter some things have been decided to be left
out.</p>
<p>The Lighthouse feed can be found in your browsers auto
discovery, which is typically in the browsers URL bar.</p>
<p>Safari:</p>
<p><img src=
"http://img.skitch.com/20081215-fsxtxir3wgi2dsgnw1167mk3wk.jpg"
alt="safari"></p>
<p>Firefox:</p>
<p><img src=
"http://img.skitch.com/20081215-cjfbte4ip7dk37kpq5mna5484c.jpg"
alt="firefox"></p>
<p>You can reach the feed manually by adding /events.atom to the
end of your account or project URL.</p></div>Will Duncantag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-16T01:27:18Z2009-01-16T01:27:18ZLive feed of LH activity<div><p>Hi,</p>
<p>I am interested in the callbacks.</p>
<p>I am just calling the rest api directly. Can I use the
experimental callbacks without the lighthouse api gem. Where do you
get this btw? Are you referring to
git://github.com/Caged/lighthouse-api.git?</p>
<p>I was looking at the RSS feeds as well. They don't seem to
contain all the events, only a subset. Is this a bug?</p>
<p>Thanks.</p>
<p>Vidal.</p></div>vgrauperatag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-16T01:37:09Z2009-01-16T01:43:39ZLive feed of LH activity<div><p>Yes of course! It should match any other top level resource like
project.</p>
<pre>
<code class="ruby">Lighthouse.account = "foo"
callback = Lighthouse::CallbackHandler.new
callback.url = "http://myserver.com"
callback.project_id = 1
callback.save</code>
</pre>
<p>To do this with http, post this to
<code>http://foo.lighthouseapp.com/callback_handlers.xml</code></p>
<pre>
<code><?xml version="1.0" encoding="UTF-8"?>
<callback-handler>
<url>http://myserver.com</url>
<project-id>1</project_id>
</callback-handler></code>
</pre>
<p>Or change the URL to <code>*.json</code></p>
<pre>
<code>{"callback_handler":
{"url": "http://myserver.com",
"project_id": 2}}</code>
</pre>
<p>Pay special attention to the way xml uses dashes and json uses
underscores. Also, keep the <a href=
"http://lighthouseapp.com/api/the-basics">api basics</a> in mind
when dealing with authentication and http headers.</p>
<p>Part of the new Lighthouse client api will include generation
built from the ruby library. We'll just run something like
<code>rake restdoc</code> to get something similar to <a href=
"http://lighthouseapp.com/api/projects">the current docs</a>.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-21T17:15:56Z2009-01-21T17:15:56ZLive feed of LH activity<div><p>If you register a callback like above for
<project-id>1</project_id> do you get notifications for
all the tickets in that project? or just changes in the project
itself? Thanks.</p></div>vgrauperatag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-21T17:38:37Z2009-01-21T17:38:37ZLive feed of LH activity<div><p>You get all notifications for the project: tickets, memberships,
messages, changesets. It sends you the full data for the object, so
you don't have to worry about making another call to look up the
modified object.</p>
<p>I'll eventually add a filter field so you can set that you
<em>only</em> want messages and tickets. I may go a step further
and let you specify a ticket search query to specify that you only
want closed tickets.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-22T01:17:57Z2009-01-22T01:17:57ZLive feed of LH activity<div><p>Thanks.</p>
<p>I understand this is still "private and experimental". Does this
mean I have ask to have it enabled for my accounts so I can try it?
Or is it on for all accounts?</p></div>vgrauperatag:help.lighthouseapp.com,2008-09-20:Comment/219652009-01-22T01:32:57Z2009-01-22T01:32:57ZLive feed of LH activity<div><p>It's on, but we'll be limiting it in the near future. All
non-free plans will be allowed to create just 1 callback handler.
We'll be setting up some sort of api token program for other
products that want to integrate. For instance, Tender uses
callbacks, so it'll get its own callback token. We hope to partner
with other products too. In the end, you'll be able to integrate
with unlimited approved services that create callback handlers, and
one private one.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/219652009-03-11T17:28:48Z2012-07-20T15:35:18ZLive feed of LH activity<div><p>A Lighthouse ticket was created for this discussion</p></div>System