You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Install with Composer
7
7
composer require phpclassic/php-shopify
8
8
```
9
9
10
-
>You may not be able to install using composer until a stable version is available. For the time being you can download the zip file and put the extracted folder into `vendor/phpclassic` folder and add the following code into your root `composer.json` file:
10
+
>You may not be able to install using composer until a stable version is available. For the time being you can download the zip file, put the extracted folder into `vendor/phpclassic` folder and add the following code into your root `composer.json` file:
11
11
12
12
```
13
13
"autoload": {
@@ -110,21 +110,22 @@ $shopify = new PHPShopify\ShopifySDK($config);
110
110
##### Now you can do `get()`, `post()`, `put()`, `delete()` calling the resources in the object oriented way. All resources are named as same as it is named in shopify API reference. (See the resource map below.)
111
111
> All the requests returns an array (which can be a single resource array or an array of multiple resources) if succeeded. When no result is expected (for example a DELETE request), an empty array will be returned.
112
112
113
-
Get all product list (GET request)
113
+
-Get all product list (GET request)
114
114
115
115
```php
116
116
$products = $shopify->Product->get();
117
117
```
118
118
119
-
Get any specific product with ID (GET request)
119
+
-Get any specific product with ID (GET request)
120
120
121
121
```php
122
122
$productID = 23564666666;
123
123
$product = $shopify->Product($productID)->get();
124
124
```
125
125
126
126
You can also filter the results by using the url parameters (as specified by Shopify API Reference for each specific resource).
127
-
For example get the list of cancelled orders after a specified date and time (and `fields` specifies the data columns for each row to be rendered) :
127
+
128
+
- For example get the list of cancelled orders after a specified date and time (and `fields` specifies the data columns for each row to be rendered) :
There are several action methods which can be called without calling the `get()`, `post()`, `put()`, `delete()` methods directly, but eventually results in a custom call to one of those methods.
0 commit comments