Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Minimal code for reading a river

View RiverReader
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<html>
<head>
<title>Minimal River Reader</title>
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script>
</head>
<body>
<script>
var theRiver;
function onGetRiverStream (updatedFeeds) {
theRiver = updatedFeeds;
}
$.ajax ({
url: "http://rss.scripting.com/rivers/nytRiver.js",
dataType: "jsonp"
});
</script>
</body>
</html>
Owner

From here you can build everything! :-)

Owner

In case you don't know, the format it's reading is documented:

http://riverjs.org/

Dave, I have created a sample app at https://github.com/andysylvester/minimal-riverjs-reader using your code, see my post at http://andysylvester.com/2014/07/14/minimal-river-js-reader/ for more info. Thanks for posting this code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.