Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created November 9, 2010 23:37
Show Gist options
  • Save dagolden/670053 to your computer and use it in GitHub Desktop.
Save dagolden/670053 to your computer and use it in GitHub Desktop.
metabase feed stuff
The Atom feed is http://metabase.cpantesters.org/tail/recent.xml
The content of each entry is JSON. In the json is a "legacy_guid" field. Given that guid, a request to
http://metabase.cpantesters.org/api/v1/guid/$legacy_guid
will give the JSON 'Metabase::Fact' data.
Grab the $json->{fact}{content} field directly if you want to show it to someone as text right away without waiting for www.cpantesters.org.
A suggestion for a "proxy", given a request for "http://example.com/proxy/$legacy_guid/", retrieve and cache the $json->{fact}{content} and send it as a text/plain response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment