- Notifications
You must be signed in to change notification settings - Fork4
mantrax314/node-fishbowl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
node-fishbowl
was created as a communication tool between node andFishbowl Inventory. Useage is as easy as:
npm install node-fishbowl --save
node-fishbowl
can be used in two ways.
Without Typescript:
//IncludevarFishbowl=require('node-fishbowl');//Create new instancevarfb=newFishbowl.Fishbowl({host:'127.0.0.1',IADescription:'A node wrapper for Fishbowl Inventory',IAID:2286,IAName:'node-fishbowl',password:'admin2',port:28192,username:'admin',bunyanLevel:'debug'});
With Typescript:
//IncludeimportFishbowl=require('node-fishbowl');//Create new instancevarfb=newFishbowl.Fishbowl({host:'127.0.0.1',IADescription:'A node wrapper for Fishbowl Inventory',IAID:2286,IAName:'node-fishbowl',password:'admin2',port:28192,username:'admin',bunyanLevel:'debug'});
Config Name | Description |
---|---|
host | The host that Fishbowl in installed on. |
IADescription | The description for the Integrated App. This will be stored/used in Fishbowl |
IAID | The ID of this Integrated App. This will be stored/used in Fishbowl |
IAName | The Name of this Integrated App. This will be stored/used in Fishbowl |
password | The password of the user for the Integrated App. |
port | The port number that Fishbowl is installed on. |
username | The username of the user for the Integrated App. |
bunyanLevel | The logging level of the library. |
//Examplefb.sendRequest({action:'ApiCallName',params:{XMLKey1:XMLValue1,XMLKey2:XMLVale2}});//Call that can be used to testfb.sendRequest({action:'ExecuteQueryRq',params:{Query:'select * from customer'}});
This was a pain to get working. There are a lot of quirks that I had to work through. If you're having issues, open a ticket and I'll try to help as much as I can. I also wrote a handful of hints in the Wiki but not in a clear format yet. Feel free to poke around there as well.