commerce

package
v0.0.0-...-bf2171b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2015 License: MIT Imports: 0 Imported by: 3

README

These are optional modules for automating scan-to-buy actions.

Each module looks-up a given barcode within its catalog, and produces a standard list in json matching products available for sale.

[
    {
        "desc": The name or description of the product
        "sku":  The unique stock keeping unit for this vendor
        "type": One of: "UPC", "EAN", "ISBN"
        "vnd":  The vendor id
    },
	
	... 
]

For example, here is the result of looking up barcode 619659070625 in Amazon's U.S. catalog:

[
    {
        "desc": "8gb Cruzer Fit Flash Drive Usb 3x5 Inches Non-Retail Packaging", 
        "sku": "B00FL5UTLY", 
        "type": "UPC", 
        "vnd": "AMZN:us"
    }, 
    {
        "desc": "SanDisk Cruzer Fit 8GB USB 2.0 Low-Profile Flash Drive- SDCZ33-008G-B35", 
        "sku": "B005FYNSUA", 
        "type": "UPC", 
        "vnd": "AMZN:us"
    }, 
    {
        "desc": "SanDisk (SDCZ33-008G-B35) 6-Pack 8GB Cruzer Fit USB 2.0 Flash Drive - Encryption Support, Password Protection", 
        "sku": "B00KBLBOYY", 
        "type": "UPC", 
        "vnd": "AMZN:us"
    }
]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	SKU         string `json:"sku"`
	ProductName string `json:"desc,omitempty"`
	ProductType string `json:"type,omitempty"`
	Vendor      string `json:"vnd,omitempty"`
}

API represents the minimum required output from any vendor's API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL