Initialize a feed:
var mediumFeed = new MediumFeed();
mediumFeed.useProxy = true; //Optionally enable a CORS proxy for local development
var mediumFeed = new MediumFeed({useProxy: true}); //Enables a CORS proxy for localhost development via options object
Get articles:
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
Asynchronous:
function alertCount(articles){alert(articles.length)} // function to print # of articles returned
mediumFeed.getUserFeed("caden", alertCount); //Pass a callback as second param
MediumArticle:
The MediumFeed functions return arrays of "MediumArticle" objects which contain the following (if available):
class MediumArticle {
title //String
link //String
creator //String
pubDate //Date
content //String
categories //Array of Strings
img // Article image
}