$ npm i instapaper-node-sdk
const Instapaper = require('instapaper-node-sdk')
const client = new Instapaper(KEY, SECRET)
client.login(username, password).then(() => {
client.listBookmarks().then(function(bookmarks){
//...
}).catch(function(err){
console.error(err)
})
})
- requestToken(user, password)
- setToken(token, secret)
- verifyCredentials
- login(user, password)
- listBookmarks(params)
- updateBookmark(params)
- addBookmark(params)
- deleteBookmark(bookmark_id)
- starBookmark(bookmark_id)
- unstarBookmark(bookmark_id)
- archiveBookmark(bookmark_id)
- unarchiveBookmark(bookmark_id)
- moveBookmark(bookmark_id, folder_id)
- getText(bookmark_id)
- listFolders
- addFolder(title)
- deleteFolder(folder_id)
- Add error handling
Please read the Instapaper API Terms of Use before using this API client.
BryantChan <[email protected]>