1.0.10 • Published 3 years ago

bricklink-plus v1.0.10

Weekly downloads
8
License
ISC
Repository
github
Last release
3 years ago

bricklink-plus

Includes the bricklink api + scrapers and other useful stuff

This package has the API of bricklink built in as 'api'. The extended api that is build extra on top of it is called 'plus'.

extended api (plus) is in development

You can find the documentation here.

setup

  • For bricklink.api functions only: Initialize first 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.
  • For bricklink.plus functions:
    • Color: getInfoColorFromId() //finds a name, rgb and colortype from a color id
    • Stores: getStores() //gives a list of bricklink stores
const bricklinkPlus = require("bricklink-plus");	

//setup with your personal values
bricklinkPlus.setup({	
    TOKEN_VALUE:"__YOURTOKENVALUE__",	
    TOKEN_SECRET:"__YOURTOKENSECRET__",
    CONSUMER_SECRET:"__YOURCONSUMERSECRET__",
    CONSUMER_KEY:"__YOURCONSUMERKEY__"	
});	

//use .then()
bricklinkPlus.api.item.getItem('PART',35106).then(part=>{
    console.log(part);
});

//use await
let doasync = async ()=>{
     let firstOrder = await bricklinkPlus.api.order.getOrders();
    console.log(firstOrder);
};
doasync();
1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.6-rc.1

3 years ago

1.0.5-e

3 years ago

1.0.5-d

3 years ago

1.0.5-c

3 years ago

1.0.5

3 years ago

1.0.5-b

3 years ago

1.0.5-a

3 years ago

1.0.4-e

3 years ago

1.0.4-d

3 years ago

1.0.4-c

3 years ago

1.0.4-b

3 years ago

1.0.4-a

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago