A simple utility to get a list of articles for any Medium feed,
including the ability to get user feeds, topic feeds, and tag
feeds.
Additionally allows for both synchronous & asynchronous usage,
and a CORS proxy for local development.
var mediumFeed = new MediumFeed();
mediumFeed.development = true; //Optionally enable development mode for a CORS proxy
var mediumFeed = new MediumFeed({development: true}); //Enables a CORS proxy for localhost development via options object
mediumFeed.getUserFeed("caden"); //Pass username of the feed you want
mediumFeed.getTopicFeed("technology"); //Pass topic (see: https://medium.com/topics)
mediumFeed.getTagFeed("reactjs"); //Pass a specific tag
function alertCount(articles){alert(articles.length)} // function to print # of articles returned
mediumFeed.getUserFeed("caden", alertCount); //Pass a callback as second param
class MediumArticle {
title //String
link //String
creator //String
pubDate //Date
content //String
categories //Array of Strings
}