
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
bricklink-api
Advanced tools
Node package for connecting to Bricklink's API.
npm install --save bricklink-api
Initialize a client with your OAuth credentials as supplied at the following:
https://www.bricklink.com/v2/api/register_consumer.page
You are required to have a Bricklink account and register your IP address from which your application will be using the API. You can also use 0.0.0.0 to match any IP address (such as a cloud solution); however, you would need to keep the keys and secrets secure.
var api = require('bricklink-api');
var Client = api.Client,
ItemType = api.ItemType;
var bricklink = new Client({
"consumer_key": "<ConsumerKey>",
"consumer_secret": "<ConsumerSecret>",
"token": "<TokenValue>",
"token_secret": "<TokenSecret>"
});
bricklink.getCatalogItem(ItemType.Part, '3001')
.then(function(part){
console.log(part);
});
\\ Alternate Usage:
var CatalogItem = api.CatalogItem;
var req = CatalogItem.get(ItemType.Part, '3001');
bricklink.send(req)
.then(function(part){
console.log(part);
});
Read basic usage.
import {Client, ItemType, CatalogItem} from 'bricklink-api';
const bricklink = new Client({
"consumer_key": "<ConsumerKey>",
"consumer_secret": "<ConsumerSecret>",
"token": "<TokenValue>",
"token_secret": "<TokenSecret>"
});
bricklink.getCatalogItem(ItemType.Part, '3001')
.then(part => console.log(part));
\\ Alternate Usage:
let req = CatalogItem.get(ItemType.Part, '3001');
bricklink.send(req)
.then(part => console.log(part));
Full API documentation is available at:
https://ryansh100.github.io/bricklink-api
FAQs
A node module for connecting to the Bricklink API.
The npm package bricklink-api receives a total of 413 weekly downloads. As such, bricklink-api popularity was classified as not popular.
We found that bricklink-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.