Skip to content

OneClickLab/instapaper-node-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instapaper APIs for Node.js

Installation

$ npm i instapaper-node-sdk

Usage

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)
    })
})

Utils

  • requestToken(user, password)
  • setToken(token, secret)
  • verifyCredentials
  • login(user, password)

Bookmarks

  • 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)

Folders

  • listFolders
  • addFolder(title)
  • deleteFolder(folder_id)

Todos

  • Add error handling

Terms of use

Please read the Instapaper API Terms of Use before using this API client.

AUTHOR

BryantChan <[email protected]>

About

Instapaper API wrapper for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%