@bebetter said in How to Manage API Key Usage in Multi-Threaded Tasks with BAS:
Can we return the API key back to the resource after finishing a thread?
You don't need it. Just set the usage count of the resource when you create it.
Hello there I'm trying to run BAS api or BAS functions in node and no matter what I try I get an error
I love to get your help :D
Using the code bellow
await BAS_API("load('google.com')!");
or
await BAS_API("load(\"http://google.com\")!");
I get the this Error
F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\custom\wl3hbvfvocs.js:46
await BAS_API("load(\"http://google.com\")!");
^^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:588:28)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\internal\custom.js:11:38
@kyle17834 said in Using BAS Api with node:
Hello there I'm trying to run BAS api or BAS functions in node and no matter what I try I get an error
I love to get your help :D
Using the code bellow
await BAS_API("load('google.com')!");or
await BAS_API("load(\"http://google.com\")!");I get the this Error
F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\custom\wl3hbvfvocs.js:46 await BAS_API("load(\"http://google.com\")!"); ^^^^^^^ SyntaxError: Unexpected identifier at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:588:28) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\internal\custom.js:11:38
