diff --git a/composer.json b/composer.json index 777c2a4..ff02256 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { - "name": "shopifyextras/shopify-php-api-wrapper", + "name": "zhandev/shopify-php-api-wrapper", "description": "Shopify PHP (Guzzle) API Wrapper", "type": "library", "license": "MIT", - "version": "1.1.3", + "version": "1.1.5", "homepage": "http://www.shopifyextras.com", "authors": [ { @@ -16,7 +16,7 @@ }, "require": { "php": ">=5.4", - "guzzlehttp/guzzle": "~5.3|~6.0", + "guzzlehttp/guzzle": "~6.0", "guzzlehttp/guzzle-services": "0.5.0", "guzzlehttp/command": "0.7.0" }, diff --git a/src/resources/metafield.php b/src/resources/metafield.php index c64c507..f047ed2 100644 --- a/src/resources/metafield.php +++ b/src/resources/metafield.php @@ -55,7 +55,7 @@ "location" => "query", "description" => "Show metafields last updated before date (format: 2008-12-31 03:00)" ), - "namepace" => array( + "namespace" => array( "type" => "string", "location" => "query", "description" => "Show metafields with given namespace" @@ -95,6 +95,15 @@ "location" => "uri", "description" => "The ID of the Product.", "required" => true + ), + "namespace" => array( + "location" => "json", + "description" => "The namespace of the metafield" + ), + "fields" => array( + "type" => "string", + "location" => "query", + "description" => "comma-separated list of fields to include in the response" ) ) ), diff --git a/src/resources/product.php b/src/resources/product.php index 343f3f0..8b6fa81 100644 --- a/src/resources/product.php +++ b/src/resources/product.php @@ -25,23 +25,27 @@ "summary" => "Retrieve a list of all Products", "responseModel" => "defaultJsonResponse", "parameters" => array( + "ids" => array( + "location" => "query", + "description" => "Filter by Ids" + ), "limit" => array( - "type" => "integer", "location" => "query", "description" => "Amount of results (default: 50) (maximum: 250)" ), + "title" => array( + "location" => "query", + "description" => "Filter by product title" + ), "page" => array( - "type" => "integer", "location" => "query", "description" => "Page to show (default: 1)" ), "since_id" => array( - "type" => "integer", "location" => "query", "description" => "Restrict results to after the specified ID" ), "vendor" => array( - "type" => "string", "location" => "query", "description" => "Filter by product vendor" ), @@ -51,12 +55,10 @@ "description" => "Filter by product handle" ), "product_type" => array( - "type" => "string", "location" => "query", "description" => "Filter by product type" ), "collection_id" => array( - "type" => "integer", "location" => "query", "description" => "Filter by collection id" ), @@ -66,12 +68,10 @@ "description" => "Show products created after date (format: 2008-12-31 03:00)" ), "created_at_max" => array( - "type" => "string", "location" => "query", "description" => "Show products created before date (format: 2008-12-31 03:00)" ), "updated_at_min" => array( - "type" => "string", "location" => "query", "description" => "Show products last updated after date (format: 2008-12-31 03:00)" ), @@ -81,22 +81,18 @@ "description" => "Show products last updated before date (format: 2008-12-31 03:00)" ), "published_at_min" => array( - "type" => "string", "location" => "query", "description" => "Show products published after date (format: 2008-12-31 03:00)" ), "published_at_max" => array( - "type" => "string", "location" => "query", "description" => "Show products published before date (format: 2008-12-31 03:00)" ), "published_status" => array( - "type" => "string", "location" => "query", "description" => "published - Show only published products. unpublished - Show only unpublished products. any - Show all products (default)" ), "fields" => array( - "type" => "string", "location" => "query", "description" => "comma-separated list of fields to include in the response" )