Node.js library to fetch recent Medium user posts.
npm install @giuseppecampanelli/medium-api
// require library
const medium = require('@giuseppecampanelli/medium-api')
// get most recent profile posts
medium.profile.getRecentPosts('giuseppecampanelli').then(res => {
// handle result
})
// get most recent post from publication
medium.publication.getRecentPost('javascript-in-plain-english', 0).then(res => {
// handle result
})
- getProfile(username)
- getRecentPosts(username)
- getRecentPost(username, post)
- getPublication(publication)
- getRecentPosts(publication)
- getRecentPost(publication, post)
- getTopic(topic)
- getRecentPosts(topic)
- getRecentPost(topic, post)