node-neto
This is a basic API wrapper for the Neto API (https://www.neto.com.au/api). Since this package use the JSON transport, you must be using Neto v5.4 and above.
Usage Example
This is a complete example to create an order.
var Neto = ;var api = uri: 'https://www.yournetosite.com.au' apiKey: '<Your Neto API Secure Key>'; var order = "Order": "OrderID": "A123" "Email": "davidh@dynamicmethods.com.au" "Username": "username" "BillFirstName": "David" "BillLastName": "Howell" "BillCompany": "Dynamic Methods Pty Ltd" "BillStreet1": "122 Sturt street" "BillStreet2": "" "BillCity": "Adelaide" "BillState": "SA" "BillPostCode": "5000" "BillCountry": "Australia" "ShipFirstName": "John" "ShipLastName": "Doe" "ShipCompany": "" "ShipStreet1": "1 Smith Street" "ShipStreet2": "" "ShipCity": "Adelaide" "ShipState": "SA" "ShipPostCode": "5000" "ShipCountry": "Australia" "ShippingMethod": "Standard Delivery" "DateRequired": "2016-02-14" ; api;
Installation
$ npm install neto
Usage
Initialisation
var Neto = ;var api = uri: 'https://www.yournetosite.com.au' apiKey: '<Your Neto API Secure Key>';
uri
- The website URL of your Neto siteapikey
- The API Key generated within the CPanel of your Neto website
Methods
All methods follow the documentation at https://www.neto.com.au/api/. All methods take two arguments:
data
: The JSON object specified in the request (e.g. order, payment, product, category, warehouse, customer, filter)callback
: The callback with anerr
andresponse
arguments
Orders / Invoices
addOrder
: https://www.neto.com.au/api/orders-invoices/addorder/getOrder
: https://www.neto.com.au/api/orders-invoices/getorder/updateOrder
: https://www.neto.com.au/api/orders-invoices/updateorder/
Payments
addPayment
: https://www.neto.com.au/api/payments/addpayment/getpayment
: https://www.neto.com.au/api/payments/getpayment/
Products
addProduct
: https://www.neto.com.au/api/products/addproduct/getProduct
: https://www.neto.com.au/api/products/getproduct/updateProduct
: https://www.neto.com.au/api/products/updateproduct/
Categories
addCategory
: https://www.neto.com.au/api/categories/addcategory/getCategory
: https://www.neto.com.au/api/categories/getcategory/updateCategory
: https://www.neto.com.au/api/categories/updatecategory/
Warehouses
addWarehouse
: https://www.neto.com.au/api/warehouses/addwarehouse/getWarehouse
: https://www.neto.com.au/api/warehouses/getwarehouse/updateWarehouse
: https://www.neto.com.au/api/warehouses/updatewarehouse/
Content
addContent
: https://www.neto.com.au/api/content/addcontent/getContent
: https://www.neto.com.au/api/content/getcontent/updateContent
: https://www.neto.com.au/api/content/updatecontent/
Customers
addCustomer
: https://www.neto.com.au/api/customers/addcustomer/getCustomer
: https://www.neto.com.au/api/customers/getcustomer/updateCustomer
: https://www.neto.com.au/api/customers/updatecustomer/