forked from Ghosts/medium-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (59 loc) · 2.56 KB
/
index.html
File metadata and controls
59 lines (59 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<title>Medium-Feed</title>
<meta name="author" content="Caden Sumner"/>
<meta name="description" content="A simple utility to get article objects for any Medium user."/>
<meta name="keywords" content="medium-feed,demo-site"/>
<link rel="stylesheet" href="https://unpkg.com/mustard-ui@latest/dist/css/mustard-ui.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.15.0/themes/prism-twilight.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.15.0/prism.min.js"></script>
<script src="lib/medium-feed.js" type="text/javascript"></script>
</head>
<body>
<div id="information">
<div class="container container-large">
<div class="col col-sm-6">
<div class="panel">
<div class="panel-head"><h2 class="panel-title">Medium-Feed</h2></div>
<div class="panel-body">
<p>
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.
<br/>
Additionally allows for both synchronous & asynchronous usage, and a CORS proxy for local development.
</p>
</div>
</div>
</div>
</div>
</div>
<div id="usage">
<div class="container container-large">
<div class="col col-12">
<div class="panel">
<div class="panel-head"><h2 class="panel-title">Usage</h2></div>
<div class="panel-body">
<h4>Initialize a feed:</h4>
<pre><code class="language-javascript">var mediumFeed = new MediumFeed();
var mediumFeed = new MediumFeed({development: true}); //Enables a CORS proxy for localhost development
</code></pre>
<br/>
<h4>Get articles:</h4>
<pre><code class="language-javascript">mediumFeed.getUserFeed("caden"); //Pass username of the feed you want
mediumFeed.getTopicFeed("technology"); //Pass topic (see: https://medium.com/topics)
mediumFeed.getTagFeed("reactjs"); //Pass tag to get feed for</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col col-sm-12">
<a href="https://www.buymeacoffee.com/caden" target="_blank"><img src="https://i.imgur.com/I80eQwg.png"/></a>
</div>
</div>
</body>
</html>