![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Node.js client for the Instapaper API.
Work in progress!
$ npm i instapaper
var Instapaper = require('instapaper');
var client = Instapaper(CONSUMER_KEY, CONSUMER_SECRET);
client.setUserCredentials(USERNAME, PASSWORD);
// Load a list of bookmarks using promises...
client.bookmarks.list().then(function(bookmarks) {
console.log('%j', bookmarks);
}).catch(function(err) {
console.warn('oh noes', err);
});
// ...or regular callbacks
client.bookmarks.list(function(err, bookmarks) {
if (err) return console.warn('oh noes', err);
console.log('%j', bookmarks);
});
The Instapaper API uses xAuth, which requires that you first register for API usage here. When your registration has been approved, you will receive a "consumer key" and "consumer secret", which you pass to the Instapaper
constructor (see below).
You also need either:
You should never store the username/password locally. Instead, after you've used them to get an OAuth token/secret pair, use those instead.
var client = Instapaper(CONSUMER_KEY : String, CONSUMER_SECRET : String[, OPTIONS : Object]);
OPTIONS
is an optional object that may contain the following properties:
apiUrl : String // Instapaper API URL prefix (default: 'https://www.instapaper.com/api/1')
logLevel : String // log level (default: 'info')
client.setUserCredentials(USERNAME : String, PASSWORD : String) : client
client.setOAuthCredentials(TOKEN : String, SECRET : String) : client
client.authenticate() : Promise
All regular API methods call this method implicitly. However, if you want to retrieve the OAuth credentials you can use this method to do so:
client.authenticate().then(function(oauth) {
// { token : '...', secret : '...' }
});
This can be used to verify that authenticating as the user was successful.
client.verifyCredentials() : Promise
Please refer to the API documentation for valid parameters and response formats.
client.bookmarks.list(PARAMS) : Promise
client.bookmarks.delete(BOOKMARK_ID) : Promise
client.bookmarks.star(BOOKMARK_ID) : Promise
client.bookmarks.unstar(BOOKMARK_ID) : Promise
client.bookmarks.archive(BOOKMARK_ID) : Promise
client.bookmarks.unarchive(BOOKMARK_ID) : Promise
TBD.
Please read the Instapaper API Terms of Use before using this API client.
Robert Klep <robert@klep.name>
See LICENSE.md.
FAQs
Instapaper API client
The npm package instapaper receives a total of 0 weekly downloads. As such, instapaper popularity was classified as not popular.
We found that instapaper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.