wingjs
API wrapper for wing.eu
Install
npm install --save wingjs
The callbacks are optional, all functions return a Promise.
Example
const Wing = const wing = "WING_API_ID" "WING_API_SECRET"wingItem // ORwingItem
Documention
User
//Get yourselfwingUser //Create new userwingUser //Update yourselfwingUser //Get your api keywingUser //Generate new api keywingUser
Organization
//Create new OrganizationwingOrganization //Get your current OrganizationwingOrganizationcurrentcallback //Update your current OrganizationwingOrganization
Service
//Get all available ServiceswingService //Get you default ServicewingService //Set default ServicewingService
Order, Item, Store, Channel, Customer, Collect
Those are CRUD endpoints so they work the same way, i.e
wingOrder|Item|Store|Channel|Customer|Collect
All functions:
//Create new objectwing* //Findwing*ORwing* //Get a object with IDwing* //Updatewing* //Deletewing*
LICENSE
MIT