From 221c6b10dc572884f94647b6eae48b5ef21820c1 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Tue, 12 Dec 2017 20:44:49 +0600 Subject: [PATCH 01/11] Add filter by product title for product resource --- src/resources/product.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resources/product.php b/src/resources/product.php index 343f3f0..f57a267 100644 --- a/src/resources/product.php +++ b/src/resources/product.php @@ -30,6 +30,11 @@ "location" => "query", "description" => "Amount of results (default: 50) (maximum: 250)" ), + "title" => array( + "type" => "string", + "location" => "query", + "description" => "Filter by product title" + ), "page" => array( "type" => "integer", "location" => "query", From a0392d05b36023e2e961617f00e3f232f0723cd5 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Thu, 14 Dec 2017 14:14:10 +0600 Subject: [PATCH 02/11] Deleted product resource types --- src/resources/product.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/resources/product.php b/src/resources/product.php index f57a267..19f4838 100644 --- a/src/resources/product.php +++ b/src/resources/product.php @@ -26,27 +26,22 @@ "responseModel" => "defaultJsonResponse", "parameters" => array( "limit" => array( - "type" => "integer", "location" => "query", "description" => "Amount of results (default: 50) (maximum: 250)" ), "title" => array( - "type" => "string", "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" ), @@ -56,12 +51,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" ), @@ -71,12 +64,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)" ), @@ -86,22 +77,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" ) From 39bd70f49d4cc417cc0c5ac33369e23c715ce064 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Thu, 14 Dec 2017 14:55:27 +0600 Subject: [PATCH 03/11] Added namespace parameter for product metafields --- src/resources/metafield.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/resources/metafield.php b/src/resources/metafield.php index c64c507..ec68ffb 100644 --- a/src/resources/metafield.php +++ b/src/resources/metafield.php @@ -95,6 +95,10 @@ "location" => "uri", "description" => "The ID of the Product.", "required" => true + ), + "namespace" => array( + "location" => "json", + "description" => "The namespace of the metafield" ) ) ), From a4c4aa2cb979ee1b022c959b1cdce8b368780ce3 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Thu, 14 Dec 2017 21:27:23 +0600 Subject: [PATCH 04/11] refactoring --- src/resources/metafield.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resources/metafield.php b/src/resources/metafield.php index ec68ffb..b5b6083 100644 --- a/src/resources/metafield.php +++ b/src/resources/metafield.php @@ -99,6 +99,11 @@ "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" ) ) ), From d6b67bd9f4ebf319599f0b56f40707ccbf99bd8f Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Thu, 14 Dec 2017 21:37:22 +0600 Subject: [PATCH 05/11] Change github profile --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 777c2a4..51c0b27 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "shopifyextras/shopify-php-api-wrapper", + "name": "zhandev/shopify-php-api-wrapper", "description": "Shopify PHP (Guzzle) API Wrapper", "type": "library", "license": "MIT", From 8769de4404eb6ecae3595a4ef89a8dfcd4a34027 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Thu, 14 Dec 2017 21:45:35 +0600 Subject: [PATCH 06/11] Changed ver --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 51c0b27..bfcb119 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Shopify PHP (Guzzle) API Wrapper", "type": "library", "license": "MIT", - "version": "1.1.3", + "version": "1.1.4", "homepage": "http://www.shopifyextras.com", "authors": [ { From a5fbc7d5008e2a1af88ee70bb7c2c2b6a62f45ec Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Fri, 15 Dec 2017 14:35:32 +0600 Subject: [PATCH 07/11] Added ids parameter for product resource --- src/resources/product.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/resources/product.php b/src/resources/product.php index 19f4838..8b6fa81 100644 --- a/src/resources/product.php +++ b/src/resources/product.php @@ -25,6 +25,10 @@ "summary" => "Retrieve a list of all Products", "responseModel" => "defaultJsonResponse", "parameters" => array( + "ids" => array( + "location" => "query", + "description" => "Filter by Ids" + ), "limit" => array( "location" => "query", "description" => "Amount of results (default: 50) (maximum: 250)" From eb83e9d46bd5089bd1489b0601d32b22f3282897 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Fri, 15 Dec 2017 17:46:56 +0600 Subject: [PATCH 08/11] Fixed bug --- src/resources/metafield.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/metafield.php b/src/resources/metafield.php index b5b6083..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" From 3aec66a3148e9419b5f1f57893cae9a4797da5f2 Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Fri, 15 Dec 2017 17:50:21 +0600 Subject: [PATCH 09/11] Changed ver --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bfcb119..ea5977d 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Shopify PHP (Guzzle) API Wrapper", "type": "library", "license": "MIT", - "version": "1.1.4", + "version": "1.1.41", "homepage": "http://www.shopifyextras.com", "authors": [ { From 12cf4d017dc68d98db8793a4e2d5dc5355108b1f Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Fri, 15 Dec 2017 17:59:08 +0600 Subject: [PATCH 10/11] Changed ver --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ea5977d..2181da7 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Shopify PHP (Guzzle) API Wrapper", "type": "library", "license": "MIT", - "version": "1.1.41", + "version": "1.1.5", "homepage": "http://www.shopifyextras.com", "authors": [ { From b28e44324341c1dc5793c648e57d546301d8882b Mon Sep 17 00:00:00 2001 From: Zhanybek Seitaliev Date: Fri, 22 Dec 2017 10:17:10 +0600 Subject: [PATCH 11/11] Update guzzle ver --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2181da7..ff02256 100644 --- a/composer.json +++ b/composer.json @@ -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" },