File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Create a file `app.js` with the following content:
1616``` js
1717const {Client , APIError } = require (' labstack' )
1818
19- const client = new Client (' <API_KEY>' )
19+ const client = new Client (' <ACCOUNT_ID> ' , ' < API_KEY>' )
2020
2121client .barcodeGenerate ({
2222 format: ' qr_code' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ const got = require('got')
44const FormData = require ( 'form-data' ) ;
55
66class Client {
7- constructor ( apiKey ) {
7+ constructor ( accountID , apiKey ) {
8+ this . accountID = accountID
89 this . apiURL = 'https://api.labstack.com'
910 this . apiKey = apiKey
1011 }
Original file line number Diff line number Diff line change 11{
22 "name" : " labstack" ,
3- "version" : " 0.19 .0" ,
3+ "version" : " 0.20 .0" ,
44 "description" : " Official Node.js client library for the LabStack API" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments