Novice, Practiced, Mastered

    morriswchris-instapaper-node-sdk

    2.0.1 • Public • Published

    Node.js wrapper for Instapaper API

    Installation

    $ npm i instapaper-node-sdk
    

    Usage

    const Instapaper = require('instapaper-node-sdk')
    const client = new Instapaper(KEY, SECRET)
    
    // Use supplied Username/Password to get an oAuth key and secret
    client.setCredentials(USERNAME, PASSWORD)
    
    // Alternatively if you already have an oAuth key and secret, supply them directly to the client
    client.setOAuthCredentials(TOKEN, SECRET)
    
    // get the list of your bookmarks
    client.list({ limit: 100 }).then((data) => console.log(data)).catch((err) => console.log(err))

    APIs Instapaper API document

    Utils

    • verifyCredentials()

    Bookmarks

    • list(params)
    • updateReadProgress(params)
    • add(params)
    • delete(bookmarkId)
    • star(bookmarkId)
    • unstar(bookmarkId)
    • archive(bookmarkId)
    • unArchive(bookmarkId)
    • move(bookmarkId, folderId)
    • getText(bookmarkId)

    Folders

    • listFolders(params)
    • addFolder(title)
    • deleteFolder(folderId)

    Hightlights

    • listHighlights(bookmarkId)
    • addHighlight(bookmarkId, params)
    • deleteHighlight(highlightId)

    Terms of use

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

    AUTHOR

    BryantChan <bryantandk@gmail.com>

    Keywords

    none

    Install

    npm i morriswchris-instapaper-node-sdk

    DownloadsWeekly Downloads

    0

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    6.17 kB

    Total Files

    3

    Last publish

    Collaborators

    • morriswchris