![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.
designer-news
Advanced tools
NodeJS client for accessing the Designer News API.
The library is available on npm:
npm install designer-news
var DN = require('designer-news');
// Configure
var config = new DN.Configuration(function () {
this.oauthKey = 'abc123'
this.oauthSecret = 'foobar'
// optional, if you have it
this.accessToken = 'jfosdf9sud98fds0f8snd0fs8dnf'
});
// Create the client
var client = new DN.Client(config);
// If configured without an access token, you will need
// to authenticate and retrieve one. Here's the password flow:
client.auth.withPassword('username', 'password', function (err, tokens) {
// We are now logged in. The configuration is automatically updated
// with the access token. We can store them somewhere persistent
// if needed.
});
The JS function names roughly follow the same convention as the API URLs.
client.me(callback);
client.stories.get(id, callback);
client.stories.frontPage({page: 2}, callback);
client.stories.recent({page: 2}, callback);
client.stories.search(query, callback);
client.stories.upvote(id, callback);
client.stories.reply(id, comment, callback);
client.comments.get(id, callback);
client.comments.upvote(id, callback);
client.comments.reply(id, comment, callback);
client.motd.get(callback);
client.motd.upvote(callback);
client.motd.downvote(callback);
All asynchronous calls return a promise, which can be used as an alternative to providing a callback.
client.auth.withPassword('username', 'password').then(function (resp) {
console.log(resp.accessToken);
return client.stories.frontPage();
}).then(function (resp) {
return client.stories.upvote(resp.stories[0].id);
}).then(function (story) {
console.log(story);
});
Ryan LeFevre - GitHub, Twitter, Email
Available under the MIT license. See the LICENSE file for more info.
FAQs
Designer News API client
The npm package designer-news receives a total of 0 weekly downloads. As such, designer-news popularity was classified as not popular.
We found that designer-news 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.