Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Wrapper around Semantics3/semantics3-node
CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
components
spec
.gitignore
.travis.yml
Gruntfile.coffee
LICENSE.md
README.md
component.json
index.js
package.json

README.md

Semantics3 Wrapper
Build Status Dependency Status NPM version Stories in Ready

Wrapper around Semantics3/semantics3-node

Testing

This package is not tested automatically because it requires a Semantics3 key/secret pair. Please run grunt test:all manually to test.

Usage

Take a look at Semantics3/semantics3-node first.

Component Client

Create a Semantics3 client object given the account key and the secret of your account.

In-ports

  • KEY: the account key
  • SECRET: the secret

Out-ports

  • OUT: a Semantics3 client object

Component Products

Implements nested search query for products.

In-ports

  • IN: an object containing the fields. The value can be an array. Query is submitted upon for each incoming packet.
  • CLIENT: a Semantics3 client object created by Client component

Out-ports

  • OUT: an object parsed from the JSON response from Semantics3
  • ERROR: the error object

Examples

Find all "Computers and Accessories" that are on newegg.com.

'key' -> KEY Client(semanticsthree/Client)
'secret' -> SECRET Client() OUT -> CLIENT Products(semanticsthree/Products)

'{"cat_id": 4992, "sitedetails": ["name", "newegg.com"]}' -> IN ParseJson(strings/ParseJson) OUT -> IN Products()

# Prints out the result object
Products() OUT -> IN Output(Output)
# Prints out an error
Products() ERROR -> IN Error(Output)
Something went wrong with that request. Please try again.