Neanderthals Programming Machines
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    noflo-semanticsthreepublic

    Semantics3 Wrapper
    Build Status Dependency Status NPM version Stories in Ready

    Wrapper around Semantics3/semantics3-node

    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)
    

    Keywords

    none

    install

    npm i noflo-semanticsthree

    Downloadsweekly downloads

    4

    version

    0.1.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar