Skip to content

Commit 1e04cdb

Browse files
committed
Updated README.md
1 parent ac5e1dc commit 1e04cdb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In order to use this wrapper library you will need to provide credentials to acc
1212

1313
You will either need an access token for the shop you are trying to access (if using a [public application](https://help.shopify.com/api/getting-started/authentication#public-applications)) or an API Key and Secret for a [private application](https://help.shopify.com/api/getting-started/authentication#private-applications).
1414

15-
## Examples
15+
## Code Examples
1616

1717
#### Make an API call
1818
```php
@@ -36,8 +36,8 @@ $result = $shopify->call('POST', 'admin/products.json', [
3636
"title" => "Kerastase Shampoo 150ml",
3737
"body_html" => "<strong>Good shampoo for hair!</strong>",
3838
"vendor" => "Kerastase",
39-
"product_type" => "Snowboard",
40-
"tags" => 'Shampoo, Kerastas, "Hair Care"',
39+
"product_type" => "Shampoo",
40+
"tags" => 'Shampoo, Kerastase, "Hair Care"',
4141
],
4242
]);
4343
```

index.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@
88
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
99
$dotenv->load();
1010

11+
// =====================================
12+
// API Credentials
13+
// =====================================
1114
// Define shop domain, API key, and secret
1215
$shop_domain = $_ENV['SHOP_DOMAIN'];
1316
$shop_access_token = $_ENV['SHOP_ACCESS_TOKEN'];
1417
$shop_api_version = $_ENV['SHOP_API_VERSION'];
1518

16-
echo "<pre>";
1719
// var_dump($_ENV);
1820
// var_dump($shop_access_token);
19-
21+
echo "<pre>";
2022
echo "Shop Domain: " . $shop_domain . "\n";
2123
echo "Shop Access Token: " . $shop_access_token;
22-
24+
echo "</pre>";
2325

2426

2527
// Initialize the Shopify client

0 commit comments

Comments
 (0)