0.1.0 • Published 5 years ago
@giuseppecampanelli/mediumapi v0.1.0
Medium Node.js API
Node.js library to fetch recent Medium user posts.
Installation
To install Nuxt Native, start by downloading the repository and install its dependencies.
npm install mediumapi
Usage
// require library
const mediumapi = require('mediumapi')
// get most recent profile posts
mediumapi.profile.getRecentPosts('giuseppecampanelli').then(res => {
// handle result
})
// get most recent post from publication
mediumapi.publication.getRecentPost('javascript-in-plain-english', 0).then(res => {
// handle result
})
Methods
- getRecentPosts(username)
- getRecentPost(username, post)
License
0.1.0
5 years ago