Image of Railroad Semantics #3

Semantics3 categories

Net::Semantics3::Products - API Client for Semantics3 Products API

use Net::Semantics3::Products; use Data::Dumper; my $sem3 = Net::Semantics3::Products->new ( api_key => 'YOUR_API_KEY', api_secret => 'YOUR_API_SECRET', ); $sem3->add("products", "cat_id", 4992); $sem3->add("products", "brand", "Toshiba"); $sem3->add("products", "weight", "gte", 1000000); $sem3->add("products", "weight", "lt", 1500000); my $products = $sem3->get_products; print STDERR Dumper($products);

This module is a wrapper around the Semantics3 Products API. Methods are generally named after the HTTP method and the object name.

This creates a new Semantics3 API object. The following parameters are accepted:

This is required. You get this from your Semantics3 Dashboard.

Methods for querying the 'offers' endpoint.

See for full details.

Query the offers endpoint by building up the query parameters.

$sem3->offers_field( 'currency', 'USD' ); $sem3->offers_field( 'currency', 'price', 'gte', 30 );

Returns the output of the query on the 'offers' endpoint. Note: The output of this method would overwrite the output of any previous query stored in the results buffer.

my $offersResultRef = $sem3->get_offers; print STDERR Dumper( $offersResultRef );

Methods for querying the 'categories' endpoint.

Query the categories endpoint by building up the query parameters.

$sem3->categories_field( 'parent_cat_id', 1 );

Returns the output of the query on the 'categories' endpoint. Note: The output of this method would overwrite the output of any previous query stored in the results buffer.

my $categoriesResultRef = $sem3->get_categories; print STDERR Dumper( $categoriesResultRef );

Methods for querying the 'products' endpoint.

Query the products endpoint by building up the query parameters.

$sem3->products_field( 'cat_id', 4992 ); $sem3->products_field( 'brand', 'Toshiba' ); $sem3->products_field( 'weight', 'gte', 1000000 ); $sem3->products_field( 'weight', 'lt', 1500000 );

Returns the output of the query on the 'products' endpoint. Note: The output of this method would overwrite the output of any previous query stored in the results buffer.

You might also like
angela friederici - the N400 and word meaning
angela friederici - the N400 and word meaning
Semantics and Pragmatics - Word Semantics
Semantics and Pragmatics - Word Semantics
Word Meaning and Montague Grammar: The Semantics of Verbs and Times in Generative Semantics and in Montague's PTQ (Studies in Linguistics and Philosophy, Vol. 7)
Book (D. Reidel Publishing Company)
  • Used Book in Good Condition
Related Posts