Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neto

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neto

Neto API wrapper for your Node.js applications

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
134
increased by0.75%
Maintainers
1
Weekly downloads
 
Created
Source

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 = require('neto');
var api = new Neto({ 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.addOrder(order, function(err, res) {
	if(err) console.log(err);

	console.log(res);
});

Installation

$ npm install neto

Usage

Initialisation

var Neto = require('neto');
var api = new Neto({ uri: 'https://www.yournetosite.com.au', apiKey: '<Your Neto API Secure Key>'});
  • uri - The website URL of your Neto site
  • apikey - 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 an err and response arguments
Orders / Invoices
Payments
Products
Categories
Warehouses
Content
Customers

Keywords

FAQs

Package last updated on 18 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc